I successfully compiled samba 2.2.3a with the following config options on
Solaris 8:
./configure --prefix=/pkg/net --libdir=/pkg/net/lib/samba --with-privatedir
=/vol/sec/samba --sysconfdir=/pkg/net/etc --with-ldapsam
I'm using the iPlanet 5.1 Directory Server, and I'm getting some odd
behavior with LDAP.
smbpasswd, run as root sets the password just fine. I see the LDAP traffic
and an ldapsearch reveals that the hash is indeed different. However, when
smbpasswd is run as a regular user, there's no LDAP traffic and it core
dumps:
[jshea@vali:/vol/src/net/.real/samba-2.2.3aLDAP/source] $
/pkg/net/bin/smbpasswd jshea
Old SMB password:
Password changed for user jshea
Bus Error (core dumped)
A truss suggests that it isn't even recognizing the use of ldap and is for
some reason using the local file: /vol/sec/samba/smbpasswd.
3588: read(4, "\0\0\0 1", 4) = 4
3588: read(4, "FF S M B u\0\0\0\08801\0".., 49) = 49
3588: open64("/dev/urandom", O_RDONLY) Err#2 ENOENT
3588: open64("/etc/shadow", O_RDONLY) Err#13 EACCES
3588: open64("/vol/sec/samba/smbpasswd", O_RDONLY) Err#13 EACCES
3588: door_info(3, 0xFFBEC910) = 0
3588: door_call(3, 0xFFBEC8F8) = 0
3588: send(4, "\0\002 vFF S M B %\0\0\0".., 634, 0) = 634
3588: poll(0xFFBEC9B0, 2, 20000) = 1
3588: read(4, 0x001445D0, 4) = 0
3588: close(4) = 0
Password changed for user jshea
3588: write(1, " P a s s w o r d c h a".., 32) = 32
3588: Incurred fault #5, FLTACCESS %pc = 0xFF0423FC
3588: siginfo: SIGBUS BUS_ADRALN addr=0xFFBEF7FF
3588: Received signal #10, SIGBUS [default]
3588: siginfo: SIGBUS BUS_ADRALN addr=0xFFBEF7FF
3588: *** process killed ***
Furthermore, whenever I try to do an smbclient connection to the home
directory, it exits and samba.log's last entry is an ldap_open:
[jshea@vali:/vol/src/net/.real/samba-2.2.3aLDAP/source] $
/pkg/net/bin/smbclient //vali/jshea ***** -U jshea
added interface ip=127.0.0.1 bcast=127.0.0.255 nmask=255.255.255.0
added interface ip=131.252.134.42 bcast=131.252.134.255 nmask=255.255.255.0
session setup failed: SUCCESS - 0
samba.log:
[2002/04/11 17:10:28, 2] passdb/pdb_ldap.c:ldap_open_connection(142)
ldap_open_connection: connection opened
However, there's no ldap traffic. Any ideas? Has anyone gotten samba
2.2.3a to work on solaris 8 with ldap authentication? With the iPlanet
directory server? If someone has successfully done it with openLdap, then
I'll try it.
Thanks in advance.
Jackson Shea
jshea@pdx.edu
Portland State University