Skip to content

AD and Linux

Adding Linux Workstations to Active Directory 2003 1. Introduction What is this document about? This document is supposed to help you in integrating your Linux Machines into your existing Active Directory 2003 setup. This way you can have a centralized authentication and user information. 2. Requirements In order for this to work you will have to install the following packages in the order shown below: On the Active Directory Server:

a) Unix Services for Windows 3.5 or later

On the Linux clients:

a) PAM b) Kerberos c) LDAP d) nss_ldap

3. Getting started Install the Kerberos client and library. Now you should have a /etc/krb5.conf if you do not create it:

#touch /etc/krb5.conf

Edit the new file and modify the below example in order to fit into your organization’s setup:

[libdefaults] clockskew = 300 default_realm = ADTEST.LOCAL [realms] ADTEST.LOCAL = { kdc = linuxad.adtest.local default_domain = ADTEST.LOCAL kpasswd_server = linuxad.adtest.local } [domain_realm] .ADTEST.LOCAL = ADTEST.LOCAL ADTEST.LOCAL = ADTEST.LOCAL

First notice the capital letters. You MUST keep that information CAPITALIZED. Explanation: ADTEST.LOCAL is the Active Directory domain linuxad.adtest.local is the machine running the domain controller Testing it: In order to test and see if the Kerberos authentication is working run the following:

#kinit usernameFromAD

After you run this you should see something similar to this:

Password for usernameFromAD@ADTEST.LOCAL:

Type in the password. If everything went as it should you should now have a ticket for that user. In order to check this, type in the following:

#klist

You should see something similar to:

Ticket cache: FILE:/tmp/krb5cc_0 Default principal: usernameFromAD@ADTEST.LOCALValid starting Expires Service principal 08/19/05 15:56:41 08/20/05 01:56:43 krbtgt/ADTEST.LOCAL@ADTEST.LOCAL renew until 08/20/05 15:56:41

If you are seeing this then congratulations, Kerberos authentication is working. Now, install the LDAP client. Once you have done that you should have a file called /etc/ldap.conf (NOTE: this may vary across distributions). Do the following:

#mv /etc/ldap.conf /etc/ldap.conf.orig #touch /etc/ldap.conf

Now go in /etc and edit the new ldap.conf file and put the following in it:

host IP.OF.YOUR.SERVER base cn=Users,dc=linuxad,dc=adtest,dc=local binddn cn=directory,cn=Users,dc=adtest,dc=local bindpw directory scope sub ssl no nss_base_passwd cn=Users,dc=adtest,dc=local?sub nss_base_shadow cn=Users,dc=adtest,dc=local?sub nss_base_group cn=Users,dc=adtest,dc=local?sub nss_map_objectclass posixAccount user nss_map_objectclass shadowAccount user nss_map_attribute uid sAMAccountName nss_map_attribute uidNumber msSFU30UidNumber nss_map_attribute gidNumber msSFU30GidNumber nss_map_attribute loginShell msSFU30LoginShell nss_map_attribute gecos name nss_map_attribute userPassword msSFU30Password nss_map_attribute homeDirectory msSFU30HomeDirectory nss_map_objectclass posixGroup Group nss_map_attribute uniqueMember msSFU30PosixMember nss_map_attribute cn cn pam_login_attribute sAMAccountName pam_filter objectclass=user pam_member_attribute msSFU30PosixMember pam_groupdn cn=student,dc=adtest,dc=local pam_password ad

Explanation: Ok first make sure that host is set to the IP of your AD server next make sure that cn=Users is changed to whatever container you have in your organization (e.g. LinuxUsers). NOTE: Stay away from spaces, LDAP does not like them. Also, make sure you change that in the entire file not just at the top. Next, binddn cn=directory,cn=Users,dc=adtest,dc=local. In this line change cn=directory to some username that does not have any privileges on the network. This is the user that LDAP will search the username database with so it does not have to be administrator or anything like that. It can be an extremely locked down user. Last thing, bindpw directory change the directory part to whatever password you have set for the above mentioned account directory. In my case the user/password is directory/directory Configuring PAM to use ldap. Go under /etc/pam.d and do:

#mv /etc/pam.d/login /etc/pam.d/login.orig #touch /etc/pam.d/login

Now edit /etc/pam.d/login and put the following in there:

auth requisite pam_securetty.so auth requisite pam_nologin.so auth required pam_env.so auth required pam_unix.so account required pam_access.so account required pam_unix.so session required pam_motd.so session required pam_limits.so session optional pam_mail.so dir=/var/mail standard session optional pam_lastlog.so session required pam_mkhomedir.so skel=/etc/skel/ umask=0077 session required pam_unix.so password required pam_unix.so md5 shadow

Save and from a different console(not ssh, if you want to use ssh just copy the newly created login file to a file called ssh) and try to login with an Active Directory user. You should be able to login and most likely you will get an error about not having a home directory. That is ok you just need to create the home directory specified on the ADS under the Unix tab. That is it. Now you should be able to login with any AD user on that machine and also ssh into it without any problems. 4. Issues/Drawbacks The biggest drawback from this is that for the moment I have not been able to figure out how to allow users to change their passwords from the Linux workstations. This means that users will not be able to use "passwd" in order to change their passwords and will have to use a Windows machine for this or have their passwords reset manually by an Administrator. I am working on figuring out if LDAP/PAM can do this natively but so far I have not had much luck. Another issue is that you must have the home directories created for the users. PAM has the capability to do this automatically but again, I have not been able to get this working properly. LDAP Access Control Lists. Those can be used by the administrator in order to limit who can view the LDAP query information. Again, I have yet to be able to get them working. Here is an example of what I have in my ldap.conf file:

access to attr=userPassword by self write by dn.base="cn=Admins,dc=adtest,dc=local" write by * none access to * by self write by dn.base="cn=Admins,dc=adtest,dc=local" write by * none

I do not know if the above is not working because of something in the rules or if ldap.conf is just not the right place to add them to. Last issue. The need of a user/pass for the querying of information. You have to have a minimum user in order to add it to ldap.conf and be able to query the AD server. Even though the user can be a nobody on your network it is still a security list. Unfortunately I do not think there is a workaround for this.

Hot NEWS about Tramadol - fedex online tramadol, tramadol no prescription no fees overnigh, purchase tramadol overnight, tramadol bulk no prescription, buying tramadol online without prescription, tramadol online cheap, 180 ct tramadol with, need to buy cheap tramadol and pay by, 180 tramadol cheap with, cheap tramadol no prescription nextday shipping, tramadol online discount, tramadol no prescription needed, 150 tramadol, compounding drugs tramadol, no prescription required for tramadol, tramadol hci, purchase tramadol, tramadol online prescription, 180 tramadol with cod, online tramadol purchase, what is tramadol, Tramadol prescription, tramadol fed ex, tramadol free overnight shipping, medication tramadol, us tramadol, next day delivery tramadol with no script, by money order order tramadol, overnight tramadol hcl, tramadol cheap order by 3pm, tramadol without perscription, cod tramadol delivery, tramadol saturday delivery no rx, tramadol cod, order tramadol no rx, 8000 cheap online tramadol under, how easy is it to buy tramadol online, no prescription needed tramadol, tramadol generic name, tramadol without prescription cheap, tramadol online saturday delivery, tramadol overnight delivery cheap, cheap tramadol without prescription overnight delivery, buy cheap tramadol online inurl, cheap tramadol prescriptions, tramadol no doctor prescription, tramadol no dr contact, Tramadol shipped to florida, order tramadol online by fedex, tramadol saturday, tramadol no prescription required 200 tablets, tramadol 50 mg, buy tramadol for saturday delivery, tramadol order overnight shipping, buy tramadol pay by cod, tramadol cod saturday delivery, discount cheapest tramadol online, buy information tramadol, online prescription tramadol, tramadol on line prescriptions, tramadol ultram, tramadol withdrawals, tramadol cheap easy, tramadol online si, cheap cod online sold tramadol, tramadol rx, online tramadol order, tramadol hcl 50 mg tab, fedex tramadol, tramadol cod overnight delivery, tramadol addiction and withdrawal, online prescription tramadol without, online tramadol no rx, cod online tramadol, buy tramadol cash on delivery, overnight tramadol order, best buy tramadol, buy tramadol 300mg, pain medications tramadol, tramadol overnight delivery, tramadol c.o.d overnight delivery, canada tramadol no prescription, buy tramadol on line, tramadol 150 tablets, tramadol generic names, tramadol cheap overnight, cheapest online tramadol, buy mexico online pharmacy tramadol, tramadol cheap online, drug information tramadol, tramadol cod delivery, cheap discount tramadol 120 pills, tramadol 180 tablets free fedex, drug tramadol tablets, tramadol without a rx, order discount tramadol, tramadol cod pharmacy, low cholesterol diet cheap tramadol, tramadol overnight fed ex, tramadol dosage, tramadol drug addiction, tramadol on line, buy tramadol without prescription pay cod, pharmacies tramadol pay, tramadol dod drug tests, pharmacy tramadol hcl dosing, tramadol no dr, buy tramadol cheap, cheap discount tramadol, overnight buy tramadol, order cheap tramadol no rx online, tramadol orders cod, cheap tramadol cod saturday delivery, 100mg tramadol, purchase tramadol without a prescription, lowest price of tramadol, tramadol pay, tramadol 180 overnight shipping, cheap tramadol saturday delivery, online tramadol overnight delivery, tramadol drug interaction, tramadol with, buy tramadol 400mg, cheap tramadol order, buy cheapest tramadol, Cheap tramadol NO RX, where to buy tramadol, order tramadol cod, tramadol ups c.o.d., tramadol in mexico without prescription, tramadol 4 50mg tablets, cheap fedex tramadol, discount tramadol overnight delivery, cheap tramadol prescriptions online, overnight delivery tramadol purchase, online tramadol buy, online pharmacy fedex C.O.D tramadol, buy now tramadol, pharmacy tramadol, online tramadol without rx, prescription tramadol drug, tramadol online consultation, buy tramadol no prescription, tramadol overnight shipping, cod tramadol no prescription, cheap prescription tramadol without, cheap tramadol fedex overnight, tramadol ups, tramadol cheap discount, tramadol 180 ct cheap, online pharmacy cod tramadol, cheap tramadol c.o.d., tramadol cheap next day, online tramadol with delivery, tramadol online cod shipping, buy drug tramadol, how to get a doctor to prescript tramadol, hydrochloride low cost tramadol, buy tramadol tablets, buy tramadol order cod, buy tramadol discount, order cheap tramadol no prescription, online tramadol no prescription, tramadol fast delivery, online pharmacy tramadol 24 hours, tramadol cod online orders, discount tramadol purchase, hydrochloride tramadol, buy tramadol overnight delivery, tramadol pain medication arthritis, tramadol with no presciption, zantac tramadol, buy no rx tramadol, buy prescription tramadol without, order tramadol online cod, tramadol hcl for anti depression, tramadol drug screen, cheap tramadol overnight, order tramadol online without prescription, low price tramadol no prescription, cheapest tramadol, tramadol drug utilization review, buying tramadol without a prescription, buy tramadol medication cod, order tramadol online, buy discount tramadol now, cheap tramadol next day shipping, tramadol same day delivery, buy tramadol online consultation us, order pharmacy tramadol, online pharmacy fedex cod tramadol, tramadol hydrochloride synthesis, Buy cheap tramadol online, no prescription medications cheap tramadol vallium, tramadol cheap cod, tramadol no prescription overnight cod delivery, tramadol 30 pills x 100 mg, tramadol 100 mg overnight, tramadol 180 tablets, tramadol online discount cheap, tramadol discount codes, buy tramadol apap, buy prescription tramadol, tramadol shipped with, low price tramadol without prescription, tramadol COD next day, buy discount tramadol online, tramadol in us pharmacy pay by, zenegra tramadol prescriptions, tramadol payment, purchase tramadol discount, only tramadol free consult, Buy no prescription online tramadol, tramadol free consultation, Cash on deliver Tramadol overnight, cheap legal tramadol for sale, tramadol online overnight shipping, tramadol without a presciption, information on tramadol, cheap 120 tramadol, Tramadol no prescription pharmacy discounter, california discount pharmacy tramadol, order cheap tramadol online, no rx tramadol, tramadol 120 pills cheap, tramadol 50 mg 100 tablets, tramadol cash on delivery, order tramadol online from mexico, buy tramadol online by, us tramadol fedex, tramadol and effexor, tramadol next day delivery, tramadol shipping, tramadol cash on delivery overnight, overnight tramadol without prescription, cheapest tramadol available online, pharmacies for tramadol pay w phone, buy cheap tramadol 50 mg, order tramadol by, cheap order tramadol, online purchase tramadol, 50 mg tramadol, symptom tramadol withdrawal, order cheap tramadol, order tramadol cash on delivery, tramadol antidepressant, cheap priced tramadol, tramadol free fedex shipping, tramadol online no perscription, tramadol online fedex priority overnight, buy tramadol pay by check, overnight delivery tramadol buy, buy tramadol hcl 50mg, order tramadol hcl with cod, tramadol fedex no prescription, buy tramadol with cod, buy tramadol online with next day shipping, no overnight prescription tramadol, buy cheap tramadol, tramadol saturday delivery, drug tramadol, pharmacies tramadol pay by, Buy tramadol index, order tramadol to uk, delivery online prescription saturday tramadol, buy tramadol online from oregon, tramadol no prescription cash on delivery, tramadol no script required express delivery, buying tramadol without a script, overseas tramadol cheap, tramadol overnight delivery saturday, tramadol drug, tramadol no rx needed cod accepted, tramadol cheap 120 pills, cod tramadol online, cheap order prescription tramadol, buy tramadol without prescription, buy tramadol onlines, online tramadol overnight, tramadol 200 tablets, cheap discount online tramadol, tramadol 50mg, cheap tramadol buy, online pharmacy tramadol, tramadol c.o.d. saturday delivery, buy tramadol drug, cheap tramadol no rx, tramadol 180 pills x 100 mg, tramadol without presciption, Buy Tramadol Online Overnight Fedex Delivery, where can i buy real tramadol online, discount tramadol fast delivery, buy tramadol 100mg, snorting tramadol, overnight delivery tramadol cheap, buy tramadol cheap cod, purchase tramadol overnight delivery, buy tramadol overnight, overnight tramadol cod, cheap tramadol no prescription 180ct, tramadol pay by, overnight tramadol, tramadol hydrochloride zydol, 100 mg tramadol, tramadol cod no script, cheap tramadol free shipping, cheap tramadol very, purchase tramadol without prescription, tramadol fedex shipping, TRAMADOL ONLINE FEDEX COD FREE CONSULT, tramadol overnight no prescription, tramadol prescription from doctors online, tramadol hydrochloride capsules, tramadol drug guide, overnight delivery tramadol discount, Tramadol Cash Delivery Cod, cheapest overnight tramadol, online online tramadol, fedex tramadol online cod, arthritis medicine tramadol, weekend orders for tramadol discount, tramadol 90 pills x 100 mg, get discount tramadol now, buy cheap tramadol here, tramadol order, tramadol online accept paypal, tramadol no rx, buy a tramadol, buy tramadol online no prescription, tramadol india, overnight tramadol no rx, buy tramadol hydrochloride, tramadol delivered overnight, overnight delivery tramadol online, drug metabolism inhibition tramadol, us tramadol cod sales, overnight tramadol online, real tramadol in us pharmacy, tramadol shipped on saturday, tramadol very cheap, tramadol ship to 50 states, tramadol best price, drug hydrochloride inhouse store tramadol, tramadol without rx, no prescription saturday delivery tramadol, tramadol drug medication, buy tramadol with no prescription, tramadol without doctor rx, Tramadol cheap no rx free from india, discount tramadol without rx, cheap tramadol buy online, online order overnight tramadol, tramadol hydrochloride contraindications loratadine, com online tramadol, buy discount tramadol no prescription, tramadol 180, buy tramadol without a prescription online, tramadol ultracet online accept paypal, cheap online tramadol, buy tramadol 37.5/325 Mg, by delivery saturday tramadol, buy tramadol without perscription, discount tramadol, tramadol without prescription, purchase tramadol no rx, purchase discount tramadol, link moveto online tramadol, buy tramadol 37.5, tramadol prescription consultations +, generic tramadol no prescription overnight, tramadol and overnight, cheap compare price tramadol, tramadol xr online, no prescription cheap tramadol, tramadols overnighted cod, tramadol withdraw, tramadol 120 tablets, very cheap tramadol, tramadol fedex overnight, tramadol pay cod, tramadol without a prescription and cod delivery, cheap cod tramadol, buy tramadol cheap medication inurl, phentermine tramadol viagra, no prescription tramadol fedex delivery, purchase tramadol shipping, tramadol pay by cod, tramadol 270 pills x 100 mg, Free Shipping on Tramadol Orders, tramadol and premature ejaculation, purchase tramadol without rx, tramadol 100 tablets, keywords buy tramadol, cash on delivery tramadol, ordering tramadol online, tramadol cod next day, best cheap tramadol, tramadol 60 pills x 50 mg, tramadol cash delivery, online cheap tramadol prescription, tramadol generic fedex no prescription, tramadol no prescription overnight, order tramadol without prescription, pharmacies tramadol cod, tramadol with fedex and no prescription, tramadol florida pharmacy, overnight tramadol purchase, overnight tramadol ups cod, tramadol overnight COD, buy tramadol without a prescription overnight delivery, order tramadol cod saturday, tramadol and prozac interactions, tramadol with free fedex overnight, tramadol online without prescription, cheap tramadol drugs md, online pharmacy no prescription tramadol, cheap tramadol free delivery, next day fedex shipping for tramadol, buy cheap tramadol no Prescription, buy discount tramadol, tramadol shipped, overnight tramadol discount, discount tramadol online, tramadol drug screens, cod tramadol money orders, tramadol cheap overnight fedex, no prescripton tramadol, tramadol perscription on line, cheapest tramadol overnight, pharmacies for tramadol pay, no rx tramadol cod, ultracet tramadol, tramadol cod accepted, cheap tramadol, buy tramadol cheap cod no rx, order tramadol cheap, buy tramadol online cod fast turn around time, tramadol fedex delivery, cheap tramadol over night, buying tramadol cod, is tramadol a narcotic, tramadol buy, overnight tramadol saturday delivery, buy tramadol depression, order tramadol online with cod, no prescription tramadol, cheap prescription tramadol, buy tramadol where, com buy cheap tramadol, tramadol next day cash on delivery, tramadol no consultation fees, buy tramadol online money order, online overnight shipping tramadol, tramadol medicine, buy tramadol 200mg, buy tramadol overnight via electronic check or, buy tramadol online without a prescription, buy tramadol by check, medicine called tramadol, buy 150 tramadol tablets, no prescriptions needed for tramadol, online tramadol cod, by tramadol online for cod, tramodol tramadol 180 tablets, tramadol overnight online, 180 ct tramadol payment options, buy no rx tramadol online, tramadol medicine pay, tramadol 120 pills x 100 mg, tramadol online Cash on Delivery, buy cheap tramadol online, tramadol cheap tramadol, tramadol on line no prescription, cheap tramadol pills online, tramadol 100mg, online tramadol without prescription, tramadol delivery, Tramadol no prior rx needed, tramadol prescription online, tramadol without prescription overnight shipping, tramadol overnight cod, buy cod guestbook.html inurl tramadol, generic tramadol, 180 ct tramadol payment with, cod tablet tramadol, tramadol purchase, 180 tramadol cheap, prescription what is tramadol, buy tramadol money order, doctor online prescription tramadol, tramadol 50 mg tablets, tramadol hydrochloride, online pharmacy tramadol next day, tramadol cod saturday delivery fedex, non generic tramadol no prescription, discount tramadol without prescription, buy tramadol online by cod, Buy cheap Tramadol online, tramadol without a prescription, tramadol online pharmacy, cod cheap tramadol, buy tramadol with paypal, tramadol oxycodone buy fedex, cheap tramadol overseas pharmacy, Tramadol on sale, overnight delivery tramadol, buy tramadol free consultation, tramadol drug no prescription, tramadol no script, buy tramadol from a usa pharmacy without a prescription, tramadol 60 pills x 100 mg, tramadol hydrochloride ultracet, cheap tramadol by money order, next day tramadol, tramadol online free consultation, cheap tramadol no prescription, 180 tramadol tablets with, discount tramadol order, by cod tramadol, generic name tramadol, tramadol no rx overnight, tramadol generic, tramadol 180 cheap cod, Tramadol and description, purchase tramadol online, tramadol cheap price, Tramadol orders C.O.D., tramadol hcl, order tramadol cheap no membership fees no prescription, tramadol online uk, prescription and drugs tramadol injection, online doctor consultation for tramadol, tramadol withdrawal symptom, buying tramadol in us pharmacy, tramadol online fed ex, tramadol cod shipping, tramadol no prescription no consultation, tramadol cheapest online, generic tramadol hcl online, prescription tramadol, tramadol 120 pills x 50 mg, tramadol hydrochloride tablets, cheap tramadol prices usa, without prescription tramadol, Tramadol medication, buy low price tramadol, cheap online pharmacy tramadol, tramadol addiction, pharmacy online tramadol, tramadol hydrocodone 10mg, tramadol 120, buying tramadol online, cheap tramadol 180ct, buy tramadol overnight fedex, Buy cheap tramadol us online, cheap tramadol online, drug testing tramadol, 120 cheap tramadol, buy tramadol online 150 pills, how to get tramadol without, where can i buy tramadol no prescription, tramadol shipped cod, tramadol buy fedex, tramadol medication, tramadol hydrochloride tablet, buy online tramadol, online pharmacies tramadol, buy tramadol cheap medication, tramadol with next day delivery without prescription with free shipping, buying online tramadol, no rx needed for purchasing tramadol, cheap tramadol without prescription, tramadol free overnight cod, tramadol no prescription, shipping tramadol, tramadol pharmacies 200ct cod, tramadol and online, tramadol free saturday delivery, tramadol prescriptions online saturday delivery, tramadol pharmacy, Real tramadol online, zoloft tramadol interactions, fedex overnight tramadol, tramadol online img, tramadol and gabapentin, buy cheap tramadol overnight, buy tramadol now, cheap tramadol with free shipping, tramadol next day, tramadol tablets, buy tramadol online no script with cod, order tramadol next day delivery, detox diet buy tramadol, order cheap tramadol without prescription, cheap tramadol discount, tramadol with cash on delivery, Buy Tramadol 50mg, cheap tramadol overnight free, tramadol shipped cod only, tramadol for sale, tramadol buy on line, tramadol overnight, tramadol prescription, tramadol cheap no rx required canada, buy tramadol without, cod tramadol, buy tramadol without rx, ship tramadol to arkansas payment, buy discount tramadol free shipping, cheap tramadol no prescription next day delivery, tramadol buy in UK, Tramadol free overnight shipping, pharmachies for tramadol pay cod, tramadol 180 count by cash on delivery, hcl medication