I would like to use the same username/password to log in to my Linux machine as I do for a Windows machine that authenticates against Active Directory.

In particular, what I want is:

  • When I log in via LightDM or SSH, I am authenticated with my AD credentials.
  • If my account does not exist locally, an initial one is created.
  • I do not want to have to manually synchronise passwords.
  • I don't need the option to create non-AD-authenticated accounts on the local machine, but I don't mind if the possibility exists either.

I do not administer the AD or what it runs on. I have full administrative control of the Linux machine. I have installed Samba and can reliably browse network shares using my AD credentials.

I initially tried to follow the ActiveDirectoryWinbindHowto, but it appears that I would need to be an administrator of the AD for those instructions to work (this also applies to some other, very similar instructions I found elsewhere).


If you're not the Micro$oft AD admin, do some MBA (Management By walking Around) and talk to the guy/gal because to do integration between Linux and Windows, you need willing admins on both sides.

(Putting bottles of real French Champagne right in front of anyone has helped me in 100% of the cases.)

  • This puzzles me, because clearly I don't need AD admin intervention to authenticate to access samba shares. So it's possible for my Linux box to have the AD verify my credentials somehow. Why not at login time? – detly Jan 6 '15 at 21:36
  • samba is basically a hack of old Microsoft technology (lanman) whereas AD is a combination of LDAP, DNS and Kerberos! So it's a bit more complex. I did it once, but that's like 10 years ago. But I had AD Admin access, so for me it wasn't a problem... You might ask AD admin access in an AD test container! – Fabby Jan 6 '15 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.