Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openldap authenticating
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
nash11
n00b
n00b


Joined: 30 May 2006
Posts: 26
Location: hk

PostPosted: Tue Aug 22, 2006 3:57 pm    Post subject: Openldap authenticating Reply with quote

I have three server which are 192.168.0.1 , 192.168.0.2 , 192.168.0.3 , and have already setup the openldap authentication while 192.168.0.1 is the master ldap server , now the user can authenticate via the ldap then access the servers, however , some users should not be allowed to login 192.168.0.2 , but now they can login this server via the ldap as the ldap server accept the authentication , for example , the user run 'ssh 192.168.0.2' , the ldap accept the authenticate then allow the user to login this server , can advise how to forbid the unauthorized user can access 192.168.0.2' ?
Back to top
View user's profile Send private message
nash11
n00b
n00b


Joined: 30 May 2006
Posts: 26
Location: hk

PostPosted: Sun Sep 03, 2006 5:02 pm    Post subject: Reply with quote

I have already follow the admin guide to setup it , add the below to the config file , but it is strange that when I use telnet to access the system , it pop "Access denied for this host" , but to still accept me to access the system , can advise why the system not deny me to access ? thx


#vi /etc/ldap.conf
pam_check_host_attr yes

#vi /etc/pam.d/system-auth
auth required /lib/security/pam_nologin.so
auth required pam_env.so
auth required /lib/security/pam_unix.so nullok shadow use_first_pass
auth sufficient /lib/security/pam_ldap.so
auth required pam_deny.so

account required /lib/security/pam_unix.so
account sufficient pam_localuser.so
account sufficient /lib/security/pam_ldap.so
#account sufficient [default=bad success=ok user_unknown=ignore service_err=igno
re system_err=ignore] /lib/security/$ISA/pam_ldap.so

#account [success=done new_authtok_reqd=done perm_denied=bad default=ignore] pam
_ldap.so

password required /lib/security/pam_cracklib.so retry=3
password required /lib/security/pam_unix.so nullok use_authtok shadow md5
password sufficient pam_ldap.so use_authtok use_first_pass
password required pam_deny.so

session required pam_limits.so
session required pam_unix.so
session required pam_mkhomedir.so skel=/etc/skel/ umask=0066
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