ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Is It Possible to Mount SMB Share Using Kerberos Token of Current User on MacOS

    IT Discussion
    apple unix smb macos kerberos active directory
    6
    48
    6.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Yes, that is normally what you have to do. Since SMB doesn't use keys, you need to use passwords. SMB is not designed around non-user mapping so has some odd security problems here.

      DustinB3403D 1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403 @scottalanmiller
        last edited by DustinB3403

        @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

        Yes, that is normally what you have to do. Since SMB doesn't use keys, you need to use passwords. SMB is not designed around non-user mapping so has some odd security problems here.

        But I can do as shown here

        Simply an example (not my server info)
        https://support.apple.com/library/content/dam/edam/applecare/images/en_US/osx/yos_connect_to_server.png

        and not have to pass separate credentials. The credentials are automatically pulled in using the domain users information.

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @DustinB3403
          last edited by

          @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

          @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

          Yes, that is normally what you have to do. Since SMB doesn't use keys, you need to use passwords. SMB is not designed around non-user mapping so has some odd security problems here.

          But I can do as shown here

          Simply an example (not my server info)
          https://support.apple.com/library/content/dam/edam/applecare/images/en_US/osx/yos_connect_to_server.png

          and not have to pass separate credentials. The credentials are automatically pulled in using the domain users information.

          That's because you joined the domain and are using a kerberos key. You want to do something VERY different on your server since you don't want an end user logged in passing their personal credentials along like you do on the Mac desktop.

          DustinB3403D 1 Reply Last reply Reply Quote 0
          • dbeatoD
            dbeato
            last edited by

            Take a look below:
            https://wiki.fogproject.org/wiki/index.php?title=Password_Protected_Samba_Share
            0_1519666030076_2018-02-26_1226.png

            DustinB3403D 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              If you do that mapping on the Mac, and then log in as another user, hopefully they can't see the files from the first user. If they can, that's even worse.

              1 Reply Last reply Reply Quote 2
              • DustinB3403D
                DustinB3403 @scottalanmiller
                last edited by

                @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                Yes, that is normally what you have to do. Since SMB doesn't use keys, you need to use passwords. SMB is not designed around non-user mapping so has some odd security problems here.

                But I can do as shown here

                Simply an example (not my server info)
                https://support.apple.com/library/content/dam/edam/applecare/images/en_US/osx/yos_connect_to_server.png

                and not have to pass separate credentials. The credentials are automatically pulled in using the domain users information.

                That's because you joined the domain and are using a kerberos key. You want to do something VERY different on your server since you don't want an end user logged in passing their personal credentials along like you do on the Mac desktop.

                So what would be the recommended approach? I'm attempting to standardize our system setup for our mac user here, and as it is, we currently have to login as the user, and create the individual connections like above.

                Which is time consuming to say the least, and incredibly annoying if we have to change anything.

                1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403
                  last edited by

                  @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                  If you do that mapping on the Mac, and then log in as another user, hopefully they can't see the files from the first user. If they can, that's even worse.

                  This I'm not following, the goal is to create a central point that I can simply drag to an individual users desktop on any given mac, and have them connect to my Windows file server.

                  Since this is a shared resource (organizationally) they would presumably be able to see the files saved on this SMB server.

                  coliverC scottalanmillerS 2 Replies Last reply Reply Quote 0
                  • coliverC
                    coliver @DustinB3403
                    last edited by

                    @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                    @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                    If you do that mapping on the Mac, and then log in as another user, hopefully they can't see the files from the first user. If they can, that's even worse.

                    This I'm not following, the goal is to create a central point that I can simply drag to an individual users desktop on any given mac, and have them connect to my Windows file server.

                    Since this is a shared resource (organizationally) they would presumably be able to see the files saved on this SMB server.

                    That should work. Once they login to the Mac and it's domain joined it should use the Kerberos token to authenticate.

                    DustinB3403D 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @dbeato
                      last edited by DustinB3403

                      @dbeato this won't work as it would require us (IT dept) knowing people's passwords.

                      1 Reply Last reply Reply Quote 1
                      • DustinB3403D
                        DustinB3403 @coliver
                        last edited by

                        @coliver said in Is it possible to mount smb share using login credentials of current user.:

                        @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                        @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                        If you do that mapping on the Mac, and then log in as another user, hopefully they can't see the files from the first user. If they can, that's even worse.

                        This I'm not following, the goal is to create a central point that I can simply drag to an individual users desktop on any given mac, and have them connect to my Windows file server.

                        Since this is a shared resource (organizationally) they would presumably be able to see the files saved on this SMB server.

                        That should work. Once they login to the Mac and it's domain joined it should use the Kerberos token to authenticate.

                        How would I pass the kerberos credentials into the mapping? Nothing I'm seeing appears to address it.

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • DustinB3403D
                          DustinB3403
                          last edited by

                          The goal here, is to use the domain user credentials, regardless who it is, and what system they logon.

                          I want to be able to simply add this as a part of our image and just hand it out. Once the user logs into the system for the first time (and afterwards) IT would simply drag a "shortcut" to the task tray.

                          Rather than requiring the user to run "Command+K" and browsing the share as shown in the above example.

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @DustinB3403
                            last edited by

                            @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                            @coliver said in Is it possible to mount smb share using login credentials of current user.:

                            @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                            @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                            If you do that mapping on the Mac, and then log in as another user, hopefully they can't see the files from the first user. If they can, that's even worse.

                            This I'm not following, the goal is to create a central point that I can simply drag to an individual users desktop on any given mac, and have them connect to my Windows file server.

                            Since this is a shared resource (organizationally) they would presumably be able to see the files saved on this SMB server.

                            That should work. Once they login to the Mac and it's domain joined it should use the Kerberos token to authenticate.

                            How would I pass the kerberos credentials into the mapping? Nothing I'm seeing appears to address it.

                            Are you domain joined?

                            DustinB3403D 1 Reply Last reply Reply Quote 1
                            • DustinB3403D
                              DustinB3403 @scottalanmiller
                              last edited by

                              @scottalanmiller yup.

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @DustinB3403
                                last edited by

                                @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                                @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                                If you do that mapping on the Mac, and then log in as another user, hopefully they can't see the files from the first user. If they can, that's even worse.

                                This I'm not following, the goal is to create a central point that I can simply drag to an individual users desktop on any given mac, and have them connect to my Windows file server.

                                Since this is a shared resource (organizationally) they would presumably be able to see the files saved on this SMB server.

                                Are they on Kerberos and have access to that share? Does the same thing work on Windows?

                                DustinB3403D 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @DustinB3403
                                  last edited by

                                  @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                                  @scottalanmiller yup.

                                  Okay, so this is a Mac? This isn't a question that can be asked generically. This depends on the SMB protocol server being used. Is this Mac, Samba, Windows, etc. That makes a difference. What is needed or will work for UNIX that isn't Mac doesn't apply to Mac because Mac doesn't use Samba and all other UNIX does.

                                  DustinB3403D 2 Replies Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    The thing that you are trying to do, I think, is something that even Windows can't do. Or else I'm not understanding the goal. Can you explain it in a Windows context then we can translate to Mac or Samba?

                                    DustinB3403D 1 Reply Last reply Reply Quote 0
                                    • DustinB3403D
                                      DustinB3403 @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                                      @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                                      @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                                      If you do that mapping on the Mac, and then log in as another user, hopefully they can't see the files from the first user. If they can, that's even worse.

                                      This I'm not following, the goal is to create a central point that I can simply drag to an individual users desktop on any given mac, and have them connect to my Windows file server.

                                      Since this is a shared resource (organizationally) they would presumably be able to see the files saved on this SMB server.

                                      Are they on Kerberos and have access to that share? Does the same thing work on Windows?

                                      On Windows I haven't investigated, but we simply create a shortcut for the user, and their domain credentials allow them access to the share.

                                      We support Kerberos yes. I could open the share using Apple's "Connect to server" without having to type in additional credentials.

                                      1 Reply Last reply Reply Quote 0
                                      • DustinB3403D
                                        DustinB3403 @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                                        @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                                        @scottalanmiller yup.

                                        Okay, so this is a Mac? This isn't a question that can be asked generically. This depends on the SMB protocol server being used. Is this Mac, Samba, Windows, etc. That makes a difference. What is needed or will work for UNIX that isn't Mac doesn't apply to Mac because Mac doesn't use Samba and all other UNIX does.

                                        (tags buddy tags) although I should've put this bit into the OP.

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • DustinB3403D
                                          DustinB3403 @scottalanmiller
                                          last edited by DustinB3403

                                          @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                                          The thing that you are trying to do, I think, is something that even Windows can't do. Or else I'm not understanding the goal. Can you explain it in a Windows context then we can translate to Mac or Samba?

                                          Windows World:

                                          Create shortcut on desktop: Server1

                                          Shortcut details

                                          Target: \server.domain.com

                                          Immediately opens the available shares on the server without having to pass additional credentials.

                                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @DustinB3403
                                            last edited by

                                            @dustinb3403 said in Is it possible to mount smb share using login credentials of current user.:

                                            @scottalanmiller said in Is it possible to mount smb share using login credentials of current user.:

                                            The thing that you are trying to do, I think, is something that even Windows can't do. Or else I'm not understanding the goal. Can you explain it in a Windows context then we can translate to Mac or Samba?

                                            Windows World:

                                            Create shortcut on desktop: Server1

                                            Immediately opens the available shares on the server without having to pass additional credentials.

                                            Okay, so in theory all we need is a link to the URI and we'd like that sitting on the Mac desktop so they just click on that?

                                            DustinB3403D 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post