Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-21-2012, 10:54 AM
|
#1
|
Member
Registered: Apr 2010
Posts: 54
Rep:
|
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
|
|
|
07-21-2012, 01:29 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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).
|
|
|
07-22-2012, 04:39 AM
|
#3
|
Member
Registered: Apr 2010
Posts: 54
Original Poster
Rep:
|
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
|
|
|
07-22-2012, 02:51 PM
|
#4
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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 10:02 PM.
|
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
|
|