LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-21-2012, 11:54 AM   #1
parkarnoor
Member
 
Registered: Apr 2010
Posts: 54

Rep: Reputation: 1
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
 
Old 07-21-2012, 02:29 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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).
 
Old 07-22-2012, 05:39 AM   #3
parkarnoor
Member
 
Registered: Apr 2010
Posts: 54

Original Poster
Rep: Reputation: 1
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
 
Old 07-22-2012, 03:51 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fetch grid cluster details using scripts? mramya Linux - Newbie 2 06-18-2012 09:17 PM
[SOLVED] Unable to bind with Openldap Slave Server evocage Linux - Server 4 02-10-2012 03:18 AM
OpenLDAP rootDN fetch with Java wslyhbb Programming 0 01-31-2005 08:54 PM
user unable to fetch mail gmitchell Linux - Networking 3 12-17-2004 04:14 AM
Unable to fetch mail via POP3 from Novell server Phaethar Linux - Software 0 07-28-2004 08:15 AM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration