[Samba] Problem with Samba 3.0 and Sun DS 5.2

Hafiz Abdul Rehman tipu20 at gmail.com
Fri Mar 18 21:03:25 GMT 2005

i have installed Sun Java Enterprise Directory 5.2 
configured it for messaging and posix accounts
i can logon to solaris no problem

i complied samba with --with-ldapsam

i configured the smb.conf testparam check and report Ok 

when i start samba no errors in messages

when i try to add smbpasswd -a root here is the error 

No builtin nor plugin backend for ldapsam found
Loading ldapsam:ldap:// failed!
Failed to open passdb!

here is my smb.conf
        workgroup = TRAIN01
        netbios name = MASTER01
        server string = Samba Server %v
        map to guest = Bad User
        passdb backend = ldapsam:ldap://
        username map = /etc/samba/smbusers
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 100000
        time server = Yes
        deadtime = 10
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = cups
        add user script = /usr/local/sbin/smbldap-useradd -m "%u"
        add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
        add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
        delete user from group script =
/usr/local/sbin/smbldap-groupmod -x "%u" "%g"
        set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
        add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
        logon script = logon.bat
        logon path =
        logon drive = H:
        logon home = \%V\profiles
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        ldap admin dn = cn=directory manager,ou=people,dc=tipu,dc=com,dc=pk
        ldap delete dn = Yes
        ldap group suffix = ou=group
        ldap idmap suffix = ou=people
        ldap machine suffix = ou=hosts
        ldap passwd sync = Yes
        ldap suffix = dc=tipu,dc=com,dc=pk
        ldap user suffix = ou=people
        admin users = "@Domain Admins"
        printer admin = "@Print Operators"
        create mask = 0640
        directory mask = 0750
        nt acl support = No
        printing = cups
        print command = /usr/bin/lp -d '%p' %s; rm %s
        lpq command = /usr/bin/lpstat -o '%p'
        lprm command = /usr/bin/cancel '%p-%j'
        lppause command = lp -i '%p-%j' -H hold
        lpresume command = lp -i '%p-%j' -H resume
        queuepause command = /usr/bin/disable '%p'
        queueresume command = /usr/bin/enable '%p'
        case sensitive = No
        dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd

More information about the samba mailing list