Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I configured many servers with the option to make "sudo su" with ldap users, and works fine.

But in 2 servers (CentOS 5.7 and 5.5) this option show me an error:

    [user] is not in the sudoers file.  This incident will be reported.

I can't understand why the configuration don't works.

All the servers have the same configuration, i only add this line

    sudoers_base ou=SUDOers,dc=dominio,dc=root

My sensation is that the server can't ask to SUDOers LDAP.

Somebody can give me an idea? Thanks!

share|improve this question
    
Version CentOS that this configuration works fine: 5.3,5.4,5.8, etc... –  madrikeka May 9 '13 at 13:35
    
Have you verified that the version of sudo installed on the affected machines was compiled with LDAP support? –  voretaq7 May 9 '13 at 15:59
    
Thanks for the info, review this information! –  madrikeka May 10 '13 at 10:24
add comment

1 Answer

up vote 1 down vote accepted

I found the solution.

A solution very stupid :D

In this moment, in

   /etc/nsswitch.conf

Don't appear the next line:

    sudoers:  files ldap

I wrote this line and sudoers works fine.

In my other machines, this options appears automatically.

Thanks for all!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.