Samba authenticate users against Windows Domain Controller (without /etc/nsswitch.conf)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I want to setup a samba server that offers shares. The only thing it should do is:



  1. Authenticate access to the shares against an existing windows domain controller.

The things I want to avoid is:



  1. Having to add winbind to /etc/nsswitch.conf

  2. Do not have the AD users on my local systems (getent passwd should not show the AD users).

I really only want to have the authentication parsed of to the windows server itself.



Is that possible?










share|improve this question

























    up vote
    1
    down vote

    favorite
    1












    I want to setup a samba server that offers shares. The only thing it should do is:



    1. Authenticate access to the shares against an existing windows domain controller.

    The things I want to avoid is:



    1. Having to add winbind to /etc/nsswitch.conf

    2. Do not have the AD users on my local systems (getent passwd should not show the AD users).

    I really only want to have the authentication parsed of to the windows server itself.



    Is that possible?










    share|improve this question























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I want to setup a samba server that offers shares. The only thing it should do is:



      1. Authenticate access to the shares against an existing windows domain controller.

      The things I want to avoid is:



      1. Having to add winbind to /etc/nsswitch.conf

      2. Do not have the AD users on my local systems (getent passwd should not show the AD users).

      I really only want to have the authentication parsed of to the windows server itself.



      Is that possible?










      share|improve this question













      I want to setup a samba server that offers shares. The only thing it should do is:



      1. Authenticate access to the shares against an existing windows domain controller.

      The things I want to avoid is:



      1. Having to add winbind to /etc/nsswitch.conf

      2. Do not have the AD users on my local systems (getent passwd should not show the AD users).

      I really only want to have the authentication parsed of to the windows server itself.



      Is that possible?







      samba authentication samba4






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 1 '17 at 11:58









      cytopia

      62




      62




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Join the Linux server to the domain using realmd/sssd. It will automatically configure nsswitch, pam and whatever is necessary.
          Then restrict the local (ssh) login to deny domain users from logging in to your Linux server.



          But if you really don't want getent to show the users, maybe you can use ldap instead of sssd.






          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f348373%2fsamba-authenticate-users-against-windows-domain-controller-without-etc-nsswitc%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Join the Linux server to the domain using realmd/sssd. It will automatically configure nsswitch, pam and whatever is necessary.
            Then restrict the local (ssh) login to deny domain users from logging in to your Linux server.



            But if you really don't want getent to show the users, maybe you can use ldap instead of sssd.






            share|improve this answer


























              up vote
              0
              down vote













              Join the Linux server to the domain using realmd/sssd. It will automatically configure nsswitch, pam and whatever is necessary.
              Then restrict the local (ssh) login to deny domain users from logging in to your Linux server.



              But if you really don't want getent to show the users, maybe you can use ldap instead of sssd.






              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                Join the Linux server to the domain using realmd/sssd. It will automatically configure nsswitch, pam and whatever is necessary.
                Then restrict the local (ssh) login to deny domain users from logging in to your Linux server.



                But if you really don't want getent to show the users, maybe you can use ldap instead of sssd.






                share|improve this answer














                Join the Linux server to the domain using realmd/sssd. It will automatically configure nsswitch, pam and whatever is necessary.
                Then restrict the local (ssh) login to deny domain users from logging in to your Linux server.



                But if you really don't want getent to show the users, maybe you can use ldap instead of sssd.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 27 at 16:58









                Goro

                6,67752865




                6,67752865










                answered Sep 27 at 16:37









                Reinaldo Gomes

                262




                262



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f348373%2fsamba-authenticate-users-against-windows-domain-controller-without-etc-nsswitc%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay