Re: [PLUG] Error in login as a LDAP user-
On Thu, Jun 3, 2010 at 1:48 AM, Arun Khan knu...@gmail.com wrote: 2010/6/1 अमेय साठे aakreet40-p...@yahoo.com: Does 'ldapuser' have a 'valid' home directory? What does 'ls -dl /home/ldapuser' show? Yes. the directory is created on LDAP client. ls -dl /home/ldapuser shows drwx-- 2 root root/home/ldapuser ^^^ When the ldapuser logs in it is does not have rw access to it's own home directory! The home directory ownership should be something like this? drwx-- 2 ldapuser users/home/ldapuser IIRC - that is why he was trying to do chown command- so that ldapuser can own her home directory. Didn't that start the thread ? -Mandar ___ Pune GNU/Linux Users Group Mailing List
Re: [PLUG] Error in login as a LDAP user-
On issusing such a command; $ telnet 192.168.0.7 389 Connection gets established. I have not used telnet to login. That only means that telnet service is active. I'm assuming that you know that you need to use LDAP for authentication with telnet (preferably ssh) correct ? I guess the query regarding telnet was to determine if at least authentication goes thru successfully. If auth goes thru fine, but there is problem ONLY with home directory, then user would start in / (I think) since she is unable to change directory to her home. -Mandar ___ Pune GNU/Linux Users Group Mailing List
Re: [PLUG] Error in login as a LDAP user-More detailed step by step
Preparing LDAP database... Migration failed: saving failed LDIF to /tmp/nis.3257.ldif - The contents of /root/migrerr {This file contains errors of the script.}are: - slapadd: line 5: database (dc=example,dc=com) not configured to hold dc=padl,dc=com slapadd: line 5: database (dc=example,dc=com) not configured to hold dc=padl,dc=com - On both server client machine; 4. Output of the command- ldapsearch -x -b 'dc=example,dc=com' '(objectclass=*)' # extended LDIF # # LDAPv3 # base dc=example,dc=com with scope subtree # filter: (objectclass=*) # requesting: ALL # # search result search: 2 result: 32 No such object # numResponses: 1 I don't think LDAP is set correctly. Why the conflict between example.comand padl.com ? (Troubleshooting LDAP installation may be out of the scope on this thread) chown is only one of the problems. You need to be able to successfully run ldapsearch before trying anything else. BTW, what does your nsswitch.conf look like ? does it have entry for ldap for passwd and groups ? -Mandar ___ Pune GNU/Linux Users Group Mailing List
Re: [PLUG] Error in login as a LDAP user
2010/5/28 अमेय साठे aakreet40-p...@yahoo.com Hi, I followed all the LDAP steps exactly as detailed on this link(Linux Home Networking) http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch31_:_Centralized_Logins_Using_LDAP_and_RADIUS All the output is coming proper,except chown. The output of the command chown ldapuser /home/ldapuser gave me this error chown: `ldapuser':invalid user Are you able to do ldapsearch for this user ? What is the home directory listed in above output for ldapuser ? Here is someone who got similar error, and resolved just be redoing the steps http://techchorus.net/ldap-centos-52-server -Mandar ___ Pune GNU/Linux Users Group Mailing List
[PLUG] Error in login as a LDAP user
Hi, I followed all the LDAP steps exactly as detailed on this link(Linux Home Networking) http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch31_:_Centralized_Logins_Using_LDAP_and_RADIUS All the output is coming proper,except chown. The output of the command chown ldapuser /home/ldapuser gave me this error chown: `ldapuser':invalid user I am able to telnet to LDAP server from the client. tcpdump and tethereal commands are showing traffic flow from LDAP client to LDAP server and viceversa. I also implemented the steps detailed on this link. http://www.linuxquestions.org/questions/linux-server-73/chown-fails-in-client-login-for-user-defined-in-ldap-server-508416/ But to no avail :(. With Warm Regards, Ameya Sathe Blog: http://www.linuxquestions.org/blog/mr.-ameya-sathe-352399/ ___ Pune GNU/Linux Users Group Mailing List
Re: [PLUG] Error in login as a LDAP user
2010/5/28 अमेय साठे aakreet40-p...@yahoo.com: Hi, I followed all the LDAP steps exactly as detailed on this link(Linux Home Networking) http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch31_:_Centralized_Logins_Using_LDAP_and_RADIUS All the output is coming proper,except chown. The output of the command chown ldapuser /home/ldapuser gave me this error chown: `ldapuser':invalid user Does 'ldapuser' have a 'valid' home directory? What does 'ls -dl /home/ldapuser' show? I am able to telnet to LDAP server from the client. What directory are you in when you login via telnet? The output of 'pwd'? -- Arun Khan ___ Pune GNU/Linux Users Group Mailing List