Hello, 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://192.168.1.53/ failed! Failed to open passdb! here is my smb.conf [global] workgroup = TRAIN01 netbios name = MASTER01 server string = Samba Server %v map to guest = Bad User passdb backend = ldapsam:ldap://192.168.1.53/ 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
Hafiz Abdul Rehman wrote:>Hello, >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://192.168.1.53/ failed! >Failed to open passdb! > >What does smbd -b | grep LDAP report? Is it like so: [fgoserv:/]# /opt/samba/sbin/smbd -b | grep LDAP HAVE_LDAP_H HAVE_LDAP HAVE_LDAP_DOMAIN2HOSTLIST HAVE_LDAP_INIT HAVE_LDAP_INITIALIZE HAVE_LDAP_SET_REBIND_PROC HAVE_LIBLDAP LDAP_SET_REBIND_PROC_ARGS Are you getting conflicts between the (possibly) installed Sun version of samba, which does not have LDAP support, and your compiled version? -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com
This is the output of smbd -b i have compiled do u think i have to set CFLAG and CPPFLAG before ./configure ? train01 # >./smbd -b |grep -i ldap HAVE_LDAP_H HAVE_LDAP_INIT HAVE_LDAP_SET_REBIND_PROC HAVE_LIBLDAP WITH_LDAP_SAMCONFIG LDAP_SET_REBIND_PROC_ARGS WITH_LDAP_SAMCONFIG On Fri, 18 Mar 2005 15:13:20 -0600, Paul Gienger <pgienger@ae-solutions.com> wrote:> > > Hafiz Abdul Rehman wrote: > > >Hello, > >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://192.168.1.53/ failed! > >Failed to open passdb! > > > > > What does > smbd -b | grep LDAP > report? Is it like so: > [fgoserv:/]# /opt/samba/sbin/smbd -b | grep LDAP > HAVE_LDAP_H > HAVE_LDAP > HAVE_LDAP_DOMAIN2HOSTLIST > HAVE_LDAP_INIT > HAVE_LDAP_INITIALIZE > HAVE_LDAP_SET_REBIND_PROC > HAVE_LIBLDAP > LDAP_SET_REBIND_PROC_ARGS > > Are you getting conflicts between the (possibly) installed Sun version > of samba, which does not have LDAP support, and your compiled version? > > -- > Paul Gienger Office: 701-281-1884 > Applied Engineering Inc. > Systems Architect Fax: 701-281-1322 > URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com > >