LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   chown on ldap server (https://www.linuxquestions.org/questions/linux-server-73/chown-on-ldap-server-754742/)

Allie 09-12-2009 06:48 PM

chown on ldap server
 
Hello community, I have OpenLdap working on both server and client. Everything works correctly except when I do a chown on the ldap server it's not pulling the name from the ldap database but rather it's trying to pull from the passwd file and of course the user doesn't exist so I get error "invalid user". When I do a getent passwd on the server, I'm only seeing users from the passwd file instead of ldap. When I do a getent passwd on the client computer, it's listing the users from ldap so that's working fine. It seems the ldap server can't be a ldap client at the same time. Not sure if I overlook some configuration. Both server and client computers are CentOS 5.3. Thank you for your help.

Allie 09-12-2009 07:27 PM

Quote:

Originally Posted by Allie (Post 3680489)
Hello community, I have OpenLdap working on both server and client. Everything works correctly except when I do a chown on the ldap server it's not pulling the name from the ldap database but rather it's trying to pull from the passwd file and of course the user doesn't exist so I get error "invalid user". When I do a getent passwd on the server, I'm only seeing users from the passwd file instead of ldap. When I do a getent passwd on the client computer, it's listing the users from ldap so that's working fine. It seems the ldap server can't be a ldap client at the same time. Not sure if I overlook some configuration. Both server and client computers are CentOS 5.3. Thank you for your help.

After playing around, I got it to work but I'm not sure what i did to fix it. All I did was to get Webmin openldap modules to work and now getent passwd is reading from ldap and doing chown someldapuser file1 now works.


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