Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] LDAP Auth + sudo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pgb
n00b
n00b


Joined: 03 Feb 2005
Posts: 27

PostPosted: Sat Feb 05, 2005 11:39 pm    Post subject: [Solved] LDAP Auth + sudo Reply with quote

Hello, I have an LDAP server configured for login as per the howto. I recently emerged sudo, uncommented the line for the group wheel to be able to sudo, and added a user to the wheel group (the user is defined in the ldap directory). When I login with that user, and run groups, it correctly identifies the user is in the wheel group. However, the sudo command won't work.
Any pointers? It seems to me that sudo is not reading groups from the ldap directory, but I'm not sure where to start looking at. Any pointer?
Thanks in advance.


Last edited by pgb on Mon Feb 07, 2005 9:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
pgb
n00b
n00b


Joined: 03 Feb 2005
Posts: 27

PostPosted: Mon Feb 07, 2005 9:25 pm    Post subject: Reply with quote

I finally managed to solved.
The trick was to change the order in which the ldap server is accessed in my nsswitch.conf file.
The current file reads:
Code:

passwd:      ldap compat
shadow:      ldap compat
group:       ldap compat

while before it was:
Code:

passwd:      compat ldap
shadow:      compat ldap
group:       compat ldap
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum