LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   openLDap server unable to fetch user details (https://www.linuxquestions.org/questions/linux-newbie-8/openldap-server-unable-to-fetch-user-details-4175417969/)

parkarnoor 07-21-2012 10:54 AM

openLDap server unable to fetch user details
 
Hi,

i have created LDap server, i opened 389 port, firwall is disabled. i started slapd service on server.

and executed following command:
#ldapsearch -x -b 'dc=example,dc=com' '(objectclass=*)'

it worked fine.

on the client side

i executed
#ldapsearch -x -b "dc=example,dc=com" -H ldap://192.168.1.5 that is my ldap server ip. it worked fine.

i have created a user to test ldap connection
user name is 'ldapuser' under 'users' group in server.

i created home directory(ldap/user) for this user in client and copied skel/* directories.
but

following commands dont works on client

#chown -R ldapuser:users /home/ldapuser

error returned is chown:invalid user: 'ldapuser:users'

any ideas and if you good doc to setup this

please provide,

Regards,
parkar
UAE

btmiller 07-21-2012 01:29 PM

Did you tell your client system t use LDAP for authentication? Generally, this requiresediting /etc/nsswitch.conf to tell the system to use LDAP for user, group, and shadow name lookups and possibly also modifying the PAM configuration to authenticate against LDAP. What distro is your client system running? Some of them have fairly friendly tools for setting this stuff up (e.g. authconfig on RHEL based distros). Otherwise you may need to edit the config files by hand (hint: back up before you do this).

parkarnoor 07-22-2012 04:39 AM

yes i configured
 
yes it is done , using authconfig-tui. i enabled ldap server.

it seems like only that partitcular command chown is not working.

i am using RedHat Enterprise Linux 6.2 x64

Regards,
parkar
UAE

btmiller 07-22-2012 02:51 PM

Are you sure that your system is seeing the LDAP users? What happens when you try "id ldapuser" and "getent passwd ldapuser"? Also, does the users group exist?


All times are GMT -5. The time now is 11:42 PM.