mapster |
06-04-2007 09:57 AM |
configure as LDAP client
I've looked trough countless guides, howtos and manuals, but I absolutly cannot manage to get my client (ubuntu) to user authenticate on the LDAP server running on my ClarkConnect box. The only thing I've managed to get to work "$ ldapsearch -x" (on the client), which returns all the users in the database.
ldap.conf:
Code:
BASE dc=ndt-lan,dc=com
URI ldap://10.0.1.1:9009
libnss_ldap.conf:
Code:
host 10.0.1.1
base ndt-lan,dc=com
port 9009
ldap_version 3
# RFC 2307 (AD) mappings
# <to> <from>
nss_map_attribute userPassword sambaPassword
nss_map_attribute gecos name
nss_map_attribute uid unixName
nss_map_attribute shadowLastChange pwdLastSet
nss_map_objectclass posixGroup group
pam_filter objectclass=User
pam_password crypt
sasl_secprops maxssf=0
nsswitch.conf:
Code:
passwd: ldap compat
group: ldap compat
shadow: ldap compat
hosts: files dns mdns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
common-account:
Code:
account sufficient pam_ldap.so
account required pam_unix.so try_first_pass
common-auth:
Code:
auth sufficient pam_ldap.so
auth required pam_unix.so nullok_secure try_first_pass
common-password
Code:
password sufficient pam_ldap.so
password required pam_unix.so nullok obscure min=4 max=8 md5 try_first_pass
|