<HTML>
<HEAD>
<TITLE>Access.conf issue</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>All,<BR>
<BR>
I have setup the ldapserver with PAM PassThrough and need help in figuring out the access.conf without use of netgroups. Can I simply use the groups with access.conf?<BR>
<BR>
I am only able to ssh as root, but not with any ldap account. I was able to ssh before making changes for the pam_access.<BR>
<BR>
Here are the files I edited.<BR>
<BR>
/etc/ldap.conf<BR>
<B><I>pam_member_attribute uniquemember  (since 389-ds uses uniquemember for group membership)<BR>
</I></B><I>uri ldap://ldap.domain.com:389/<BR>
tls_checkpeer yes<BR>
ssl start_tls<BR>
tls_cacertdir /etc/openldap/cacerts<BR>
pam_password md5<BR>
tls_cacertfile /etc/pki/tls/certs/ca-cert.crt<BR>
<BR>
</I>/etc/security/access.conf<BR>
<I>+ : root : ALL<BR>
+ : @groupname : ALL<BR>
+ : @groupname2 : ALL<BR>
- : ALL : ALL<BR>
<BR>
</I>authconfig  --enableldap --enableldapauth --disablenis --enablecache --ldapserver=ldap.domain.com --ldapbasedn=dc=ldapdomain,dc=com --enableldaptls --disablekrb5 --krb5kdc=AD.ADdomain.com --krb5adminserver=AD.ADdomain.com --krb5realm=ADDOMAIN.COM --enablekrb5kdcdns --enablekrb5realmdns <B>--enablepamaccess </B>--enablemkhomedir --enablelocauthorize —updateall<BR>
<BR>
/etc/pam.d/system-auth<BR>
:<BR>
account     required   pam_access.so accessfile=/etc/security/access.conf <BR>
:<BR>
<I><BR>
</I>Here’s the error message I got. I see that krb5 is succeeding my password but pam_access is blocking me.<BR>
<I>pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.12.0.95  user=psundaram<BR>
Nov 18 11:01:44 wgldap01 sshd[8995]:<B> pam_krb5[8995]: authentication succeeds for 'psundaram' (<a href="psundaram@ADDOMAIN.COM">psundaram@ADDOMAIN.COM</a>)<BR>
</B>Nov 18 11:01:45 wgldap01 sshd[8995]: pam_access(sshd:account): access denied for user `psundaram' from `10.12.0.95'<BR>
Nov 18 11:01:45 wgldap01 sshd[8995]: pam_access(sshd:account): access denied for user `psundaram' from `10.12.0.95'<BR>
Nov 18 11:01:45 wgldap01 sshd[8996]: fatal: Access denied for user psundaram by PAM account configuration<BR>
<BR>
<BR>
</I>Thanks,<BR>
Prashanth</SPAN></FONT>
</BODY>
</HTML>