samba 3.5 failed to bind to ldap server invalid credentials
I just tried to build my own samba/ldap server on opensuse 11.3 and i am continuously getting an invalid credentials error when doing the smbpasswd -a command. Below are my smb and ldap files. Can anyone help me out with this error plesae.
smb.conf # Primary Domain Controller smb.conf # Global parameters [global] unix charset = utf8 workgroup = MERCDOMAIN netbios name = mercserver passdb backend =ldapsam:"ldap://mercserver.mercdomain.com" username map = /etc/samba/smbusers log level = 1 syslog = 0 log file = /var/log/samba/%m max log size = 0 #name resolve order = wins bcast hosts time server = Yes printcap name = CUPS add user script = /usr/sbin/smbldap-useradd -m '%u' delete user script = /usr/sbin/smbldap-userdel '%u' add group script = /usr/sbin/smbldap-groupadd -p '%g' delete group script = /usr/sbin/smbldap-groupdel '%g' add user to group script = /usr/sbin/smbldap-groupmod -m '%g' '%u' delete user from group script = /usr/sbin/smbldap-groupmod -x '%g' '%u' set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u' add machine script = /usr/sbin/smbldap-useradd -w '%u' logon script = logon.bat logon path = \\mercserver\profiles\%u logon drive = H: domain logons = Yes domain master = Yes wins support = Yes # peformance optimization all users stored in ldap ldapsam:trusted = yes ldap suffix = dc=mercdomain,dc=com ldap machine suffix = ou=Computers,ou=Users ldap user suffix = ou=People,ou=Users ldap group suffix = ou=Groups ldap idmap suffix = ou=Idmap ldap admin dn = cn=Manager,dc=mercserver,dc=com ldap ssl = off idmap backend = ldap://127.0.0.1 idmap uid = 10000-20000 idmap gid = 10000-20000 printer admin = root printing = cups #========================Share Definitions========================= [homes] comment = Home Directories valid users = %S browseable = yes writable = yes create mask = 0600 directory mask = 0700 [sysvol] path = /home/data/samba/sysvol read only = no [netlogon] comment = Network Logon Service path = /home/data/samba/sysvol/vavai.net/scripts writeable = yes browseable = yes read only = no [profiles] path = /home/data/samba/profiles writeable = yes browseable = no read only = no create mode = 0777 directory mode = 0777 [Documents] comment = share to test samba path = /home/data/documents writeable = yes browseable = yes read only = no valid users = "@Domain Users" slapd.conf UW PICO 5.04 File: /etc/openldap/slapd.conf include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/samba3.schema modulepath /usr/lib/openldap/modules/ # moduleload back_bdb.la pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd/slapd.args # Samba Primary Database mercdomain.com database bdb suffix "dc=mercdomain,dc=com" directory /var/lib/ldap rootdn "cn=Manager,dc=mercdomain,dc=com" rootpw merc84 index entryCSN eq index entryUUID eq #access to attrs=userPassword,sambaLMPassword,sambaNTPassword # by self write # by dn="cn=Manager,dc=mercdomain,dc=com" write # by * auth #access to * # by dn="cn=Manager,dc=mercdomain,dc=com" write # by * read # Indices to maintain index objectClass eq index cn pres,sub,eq index sn pres,sub,eq index uid pres,sub,eq index displayName pres,sub,eq index uidNumber eq index gidNumber eq index memberUID eq index sambaSID eq index sambaPrimaryGroupSID eq index sambaDomainName eq index default sub ldap.conf UW PICO 5.04 File: ldap.conf # LDAP Master host mercserver.mercdomain.com base dc=mercdomain,dc=com binddn cn=Manager,dc=mercdomain,dc=com bindpw merc84 bind_policy soft pam_password exop nss_base_passwd ou=People,ou=Users,dc=mercdomain,dc=com?one nss_base_shadow ou=People,ou=Users,dc=mercdomain,dc=com?one nss_base_passwd ou=Computers,ou=Users,dc=mercdomain,dc=com?one nss_base_shadow ou=Computers,ou=Users,dc=mercdomain,dc=com?one nss_base_group ou=Groups,dc=mercdomain,dc=com?one ssl no |
bump
|
All times are GMT -5. The time now is 08:52 AM. |