Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2003 16:56:17 +0200
From:      Ulrich Weber <uw@imos.net>
To:        ports@FreeBSD.org
Subject:   FreeBSD Port: nss_ldap-1.204_1
Message-ID:  <3EF86691.8070507@imos.net>

next in thread | raw e-mail | index | archive | help
Hi!

Maybe someone has an idea. I installed nss_ldap-1.204_1 on my FreeBSD 
5.0 machine with db3-3.3.11,1 and openldap20-2.0.25_4. I edited 
/etc/nsswitch.conf and /etc/ldap.conf, but FreeBSD doesn't seem to use 
nss_ldap.


Greetings
  Ulrich


---/etc/ldap.conf
URI     ldap://test1.lan.net

bindpw secret

binddn cn=Manager,dc=lan,dc=net

pam_check_host_attr yes

nss_base_passwd        ou=users,dc=lan,dc=net
nss_base_shadow        ou=users,dc=lan,dc=net


---ldd /usr/local/lib/nss_ldap.so.1
/usr/local/lib/nss_ldap.so.1:
         libldap.so.2 => /usr/local/lib/libldap.so.2 (0x2814d000)
         liblber.so.2 => /usr/local/lib/liblber.so.2 (0x28175000)
         libssl.so.3 => /usr/lib/libssl.so.3 (0x28180000)
         libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x281af000)


---strace ls -axl (only ldap in /etc/nsswitch.conf)
stat("/etc/nsswitch.conf", {st_mode=02, st_size=3096271989178379, ...}) = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 4
break(0x80d7000)                        = 0
ioctl(4, TIOCGETA, 0xbfbfee40)          = -1 ENOTTY (Inappropriate ioctl 
for device)
fstat(4, {st_mode=02, st_size=3096271989178379, ...}) = 0
break(0x80db000)                        = 0
read(4, "passwd: ldap\n", 16384)        = 13
read(4, "", 16384)                      = 0
break(0x80dc000)                        = 0
break(0x80dd000)                        = 0
ioctl(4, TIOCGETA, 0xbfbfee20)          = -1 ENOTTY (Inappropriate ioctl 
for device)
close(4)                                = 0
open("/etc/group", O_RDONLY)            = 4



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EF86691.8070507>