LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   LDAP user login, uidNumber restricting, how to (https://www.linuxquestions.org/questions/linux-security-4/ldap-user-login-uidnumber-restricting-how-to-810639/)

luvshines 05-28-2010 03:29 AM

LDAP user login, uidNumber restricting, how to
 
I am unable to find any ldap.conf parameter or pam.d/system-auth setting from where i can restrict the LDAP users having uidNumber less than a particular number, say 500 to login into the system

I am using OpenLDAP server and tried pam_max_uid 500 in ldap.conf but it didn't work

Any help wud be much appreciated

Thanx in Advance !!

frndrfoe 05-28-2010 10:15 PM

I would normally use access.conf to restrict access by group, especially since you are already using LDAP. Is that an option?

luvshines 11-28-2010 02:05 AM

Found that uidNumber/gidNumber only support = and != operator in filter. So <500 wouldn't be possible.
Anyways, I am now using !=0 for restricting root only
Marking it as SOLVED


All times are GMT -5. The time now is 10:32 AM.