| Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-08-2006, 09:51 AM
|
#1
|
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Rep:
|
authenticating fedora against ms active directory
Hello,
I'm trying to get a fedora core 5 box authenticated against an active directory server in our company. I've followed examples from several sources and still can not get a proper response from ldapsearch or getent.
The AD server is a 2k3 box, sp1, with ms SFU 3.5 running on the system. A generic user for binding has been created.
I can use ldap browser\editor v2.8.2 with the same credentials on the fedora machine to connect to and browse the directory, however, when I try a simple 'ldapsearch -x ""' this is the response I get:
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (objectclass=*)
# requesting:
#
# search result
search: 2
result: 1 Operations error
text: 00000000: LdapErr: DSID-0C090627, comment: In order to perform this ope
ration a successful bind must be completed on the connection., data 0, vece
# numResponses: 1
For simplicity, I'm starting with a stripped down ldap.conf in /etc/openldap that includes the following:
host 192.168.1.31
base dc=company,dc=corp
binddn CN=LDAPSvc,CN=Users,DC=company,DC=corp
bindpw secret
Openldap packages installed are the following:
openldap-2.3.19-4
nss_ldap-249-1
openldap-clients-2.3.19-4
compat-openldap-2.3.19_2.2.29-4
Does anyone have any idea why I'm not able to connect using the command line tools but the ldap browser app works? Thanks in advance
|
|
|
|
09-08-2006, 10:04 AM
|
#2
|
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Original Poster
Rep:
|
update
I tried passing the binddn from the command line to ldapsearch with the following command:
ldapsearch -x -b "dc=company,dc=corp" -W -D "CN=LDAPSvc,CN=Users,DC=company,DC=corp"
and then entering the passwd when prompted. This gets me the expected responses, which leaves me wondering why it's not reading it from the file?
perms on /etc/openldap/ldap.conf are 0644 and the directory is 0755. I'm guessing that it can read at least some of the file if it's getting the host out of there since I'm not passing that on the command line.
Any suggestions?
|
|
|
|
09-08-2006, 07:41 PM
|
#3
|
|
Member
Registered: Sep 2003
Location: Central Coast, California
Posts: 179
Rep:
|
I'm actually working on the same project but, w/ FC4.
This tut got me started.
http://technology.newsforge.com/arti...id=119&tid=118
However, there is one line in the ldap.conf file that's wrong.
change the value of "binddn" to just the username of your ldap binding user
Change this...
binddn cn=dirsearch,cn=Users, dc=lanrx,dc=com
To this...
binddn dirsearch
I would also move this "dirsearch" user to the guest group in AD and any other restrictions
that you can think of.
After that it should work perfectly(w/ out SSL though).
At the moment I have dovecot(imaps/pop3s),sendmail,local login, and SSH using PAM to auth to AD on Win2K all over SSL. It IS possible!
=======================
Here are some other tuts that I've found helpful
http://www.connexitor.com/forums/vie...b8d12d0decc2ce
http://www.linuxquestions.org/questi...71#post1943371
http://www.enterprisenetworkingplane...le.php/3514511
http://wanderingbarque.com/howtos/ma...ailserver.html
|
|
|
|
09-11-2006, 08:44 AM
|
#4
|
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Original Poster
Rep:
|
same problems
I tried with just the username in the binddn and I'm still getting the same response: no search results returned without the complete command line posted earlier. getent passwd <username> returns nothing either, although it takes a few minutes for it to complete. (exit code returned from getent is 2)
By the way, shortening basedn and the binddn on the command line to just the user also works:
ldapsearch -x -W -b "dc=company,dc=corp" -D ldapsvc
and even this works:
ldapsearch -x -W
so it looks like the binddn is being read, but not the password.
Last edited by paulgnyc; 09-11-2006 at 09:07 AM.
|
|
|
|
09-11-2006, 06:21 PM
|
#5
|
|
Member
Registered: Sep 2003
Location: Central Coast, California
Posts: 179
Rep:
|
Perhaps your /etc/pam.d/system-auth password section is misconfigured.
Look through the docs and see how they configure it.
Mine looks like this
password requisite /lib/security/$ISA/pam_cracklib.so retry=3
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5
shadow
password sufficient /lib/security/$ISA/pam_ldap.so use_authtok
password required /lib/security/$ISA/pam_deny.so
|
|
|
|
09-15-2006, 08:25 AM
|
#6
|
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Original Poster
Rep:
|
working
found a link that was a great resource, just wanted to post it back here in case anyone is having the same issue:
http://cb-net.co.uk/readarticle.php?article_id=5
|
|
|
|
10-26-2006, 07:41 AM
|
#7
|
|
LQ Newbie
Registered: Oct 2006
Distribution: Ubuntu RHEL SLES Debian Backtrack
Posts: 12
Rep:
|
omg wrong thread..
sry again
delete me.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:46 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|