Dave
2008-Jan-20 10:45 UTC
[CentOS] centos authentication via ldap produces no name shell prompt
Hello, I'm trying to set up centos 5.1 to authenticate against an openldap server. I've got the authentication working, in that i can log in as a user contained within the ldap database but not in the system passwd/group files. The problem is instead of a prompt that for example looks like this: (username)@hostname:~/$ i'm getting this: (I have no name)@hostname:~/$ Aside from this everything works, i can finger, use id, etc. It's annoying and i'm thinking it might be a symptom of a misconfiguration. Any suggestions? Thanks. Dave.
mouss
2008-Jan-20 11:40 UTC
[CentOS] centos authentication via ldap produces no name shell prompt
Dave wrote:> Hello, > I'm trying to set up centos 5.1 to authenticate against an openldap > server. I've got the authentication working, in that i can log in as a > user contained within the ldap database but not in the system > passwd/group files. The problem is instead of a prompt that for > example looks like this: > > (username)@hostname:~/$ > > i'm getting this: > > (I have no name)@hostname:~/$ >set the prompt with something like PS1="(\u)@\h: \W\$ "> Aside from this everything works, i can finger, use id, etc. It's > annoying and i'm thinking it might be a symptom of a misconfiguration. > Any suggestions?make sure the right shell is returned.
Tronn Wærdahl
2008-Jan-20 17:43 UTC
[CentOS] centos authentication via ldap produces no name shell prompt
On Jan 20, 2008 11:45 AM, Dave <dmehler26 at woh.rr.com> wrote:> Hello, > I'm trying to set up centos 5.1 to authenticate against an openldap > server. I've got the authentication working, in that i can log in as a > user > contained within the ldap database but not in the system passwd/group > files. > The problem is instead of a prompt that for example looks like this: > > (username)@hostname:~/$ > > i'm getting this: > > (I have no name)@hostname:~/$ > > Aside from this everything works, i can finger, use id, etc. It's > annoying and i'm thinking it might be a symptom of a misconfiguration. Any > suggestions? > Thanks. > Dave. > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >I allso experienced this with CentOS4.4, then I got i because of some missconfiguration with the LDAP. If I remember correctly is was coz of some permission was failling on some ldap configuration files (/etc/ldap.conf, /etc/openldap/slapd.conf, /etc/nsswitch.conf, /etc/openldap/ldap.conf) Tronn -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080120/39bcf25b/attachment-0002.html>
mups.cp
2008-Jan-21 16:11 UTC
[CentOS] centos authentication via ldap produces no name shell prompt
Maybe not the better approach, but using nscd on the clients solve this. On Jan 20, 2008 8:45 AM, Dave <dmehler26 at woh.rr.com> wrote:> Hello, > I'm trying to set up centos 5.1 to authenticate against an openldap > server. I've got the authentication working, in that i can log in as a user > contained within the ldap database but not in the system passwd/group files. > The problem is instead of a prompt that for example looks like this: > > (username)@hostname:~/$ > > i'm getting this: > > (I have no name)@hostname:~/$ > > Aside from this everything works, i can finger, use id, etc. It's > annoying and i'm thinking it might be a symptom of a misconfiguration. Any > suggestions? > Thanks. > Dave. > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >