Hi there guys, I'm asking here cuz in openldap mailing list I was banned cuz they say that PAM is off-topic and not LDAP related.<br><br>My goal is to get rid of  /etc/passwd file and autenticate my users via LDAP database,
<br><br>So, here is what I've done,<br><br>System opensuse 10.1<br><br>commmon-auth <br>auth required pam_env.so<br>auth required pam_unix2.so<br>auth sufficient pam_ldap.so<br><br>common-account<br>account required pam_unix2.so
<br>account sufficient pam_ldap.so<br><br>login<br>auth required pam_securetty.so<br>auth include common-auth<br>auth required pam_nologin.so<br>auth sufficient pam_ldap.so<br><br>auth required pam_mail.so<br>account include common-account 
<br>password include common-password<br>session include common-session<br>session required pam_resmgr.so<br><br><br>common-session<br>session required pam_limits.so<br>session required pam_unix2.so <br>session sufficient pam_ldap.so
<br><br><br>ssh<br><br>#%PAM-1.0<br>auth include common-auth<br>auth required pam_nologin.so<br>account include common-account<br>password include common-password <br>session include common-session<br><br><br><br>The user netwarrior is not part of the passwd unix system, cuz I wanna get rid of it, I wanna all my users reside in the LDAP dtabase.
<br>netwarrior was added like this : smbldap-useradd netwarrior <br>Then:<br>linux:/usr/local/sbin # ./smbldap-usershow netwarrior<br><br>dn: uid=netwarrior,ou=Users,dc=netwarrior,dc=com<br>objectClass: top,inetOrgPerson,posixAccount,shadowAccount
<br>cn: netwarrior<br>sn: netwarrior<br>uid: netwarrior<br>uidNumber: 1005<br>gidNumber: 513<br>homeDirectory: /home/netwarrior<br>loginShell: /bin/bash<br>gecos: System User<br>description: System User<br>userPassword: {SSHA}wcM+uu6ExMHrxWOebO2wVQ/rwMpmWDNI
<br>linux:/usr/local/sbin # <br><br>linux:/usr/local/sbin # ./smbldap-passwd netwarrior and gave it a password<br><br>When trying , for example ssh netwarrior@suse from a remote machine using ssh I get:<br><br>NOTE This remote machine does not authenticate to the LDAP server or whatever, PDC and so on, just try to make an ssh connection using a known user. 
<br><br>tail -f /var/log/messages<br>Oct 9 22:05:32 linux sshd[7005]: Invalid user netwarrior from <a href="http://172.16.4.100">172.16.4.100</a><br><br><br>Oct 9 22:06:16 linux slapd[6910]: conn=10 op=2 SRCH base="dc=example,dc=com" scope=2 deref=0 filter="(uid=netwarrior)" 
<br>Oct 9 22:06:16 linux slapd[6910]: send_ldap_result: conn=10 op=2 p=3<br>Oct 9 22:06:16 linux slapd[6910]: send_ldap_result: err=10 matched="" text=""<br>Oct 9 22:06:16 linux slapd[6910]: send_ldap_response: msgid=3 tag=101 err=32 
<br>Oct 9 22:06:16 linux sshd[7010]: pam_ldap: ldap_search_s No such object<br>Oct 9 22:06:16 linux sshd[7008]: error: PAM: User not known to the underlying authentication module for illegal user netwarrior from freebsd <br>
<br>Oct 9 22:06:16 linux slapd[6910]: conn=10 op=2 SEARCH RESULT tag=101 err=32 nentries=0 text=<br>Oct 9 22:06:16 linux slapd[6910]: daemon: activity on 1 descriptors<br>Oct 9 22:06:16 linux slapd[6910]: daemon: activity on: 
<br>Oct 9 22:06:16 linux slapd[6910]: 12r<br>Oct 9 22:06:16 linux slapd[6910]:<br>Oct 9 22:06:16 linux slapd[6910]: daemon: read activity on 12<br>Oct 9 22:06:16 linux slapd[6910]: connection_get(12)<br>Oct 9 22:06:16 linux slapd[6910]: connection_get(12): got connid=10 
<br>Oct 9 22:06:16 linux slapd[6910]: connection_read(12): checking for input on id=10<br>Oct 9 22:06:16 linux slapd[6910]: ber_get_next on fd 12 failed errno=0 (Success)<br>Oct 9 22:06:16 linux slapd[6910]: connection_read(12): input error=-2 id=10, closing. 
<br>Oct 9 22:06:16 linux sshd[7008]: Failed keyboard-interactive/pam for invalid user netwarrior from <a href="http://172.16.4.100">172.16.4.100</a> port 57885 ssh2<br><br><br>example??? ->  the base dn is netwarrior, where did it take "dc=example,dc=com", what I am missing 
<br><br>ldap.conf in the server machine is like this<br><br>#BASE dc=netwarrior,dc=com<br>#URI ldap://127.0.0.1<br>#HOST <a href="http://127.0.0.1">127.0.0.1</a><br><br>#TLS_CACERT /etc/ssl/server.crt<br>#TLS_REQCERT demand 
<br><br><br>#SIZELIMIT 12<br>#TIMELIMIT 15<br>#DEREF never<br>TLS_REQCERT allow<br><br>#nss_base_passwd ou=Users,dc=netwarrior,dc=com?one<br>#nss_base_shadow ou=Users,dc=netwarrior,dc=com?one<br>#nss_base_group ou=Groups,dc=netwarrior,dc=com?one 
<br><br>BASE, URI, HOST and nss* uncommented make no difference.<br><br><br>slapd.conf reads like this:<br>TLSCipherSuite HIGH:MEDIUM:+SSLv3<br>#TLSCACertificateFile /etc/ssl/server.csr<br>TLSCertificateFile /etc/ssl/server.crt 
<br>TLSCertificateKeyFile /etc/ssl/server.key<br>TLSVerifyClient try<br><br>In sshd_conf I've got.<br>UsePAM yes<br><br><br><br>Thanks in advance, sorry for the noise.<br><br>