[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Samba failed to bind Ldap


good day!

my Samba can already bind with the LDAP, there's a clerical error on my smb config file.
passd backend=ldapsam:ldap*s*:// - ldaps => ldap

but i still have problem:
1) My MS client cannot connect to the domain, the username/passwd is invalid.

This is what i do:
1) smbldap-adduser -a test1
2) smbldap-passwd test1
3) smbldap-userlist
   result :
   uid  |username
  0     |root                |
999   |nobody          |
1006  |test1              |

4) smbldap-usershow test1

dn: uid=test1,ou=User,dc=fcb.net,dc=.
objectClass: top,person,organizationalPerson,inetOrgPerson,posixAccount,shadowAccount,sambaSamAccount
cn: test1
sn: test1
givenName: test1
uid: test1
uidNumber: 1006
gidNumber: 513
homeDirectory: /home/samba/user/test1
loginShell: /bin/bash
gecos: System User
userPassword: {crypt}x
sambaPwdLastSet: 0
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
sambaPwdMustChange: 2147483647
displayName: test1
sambaAcctFlags: [UX]
sambaSID: S-1-5-21-2796061091-2530429657-3897351620-3012
sambaLMPassword: XXX
sambaPrimaryGroupSID: S-1-5-21-2796061091-2530429657-3897351620-513
sambaNTPassword: XXX
sambaLogonScript: test1.bat
sambaProfilePath: \\smbldap\home\samba\profiles\test1
sambaHomePath: \\smbldap\home\samba\users\test1
sambaHomeDrive: H:

5) Join the MS client to the domain.

####### E N D ############

1) Am i lacking something?
2) How to confirm that the user i add was already OK?

Thank you!

Emil Sicad
Cebu Mitsumi Inc.
Informtaion Systems Division

Buchan Milne wrote:
On Wednesday 26 November 2008 09:31:38 Emil Sicad - ISD wrote:
Good day to all,

Im new to LDAP,  I've been working with SAMBA-LDAP implem.
and i have these messages logs:

Nov 25 17:56:59 smbldap slapd[9974]: sql_select option missing Nov 25 17:56:59 smbldap slapd[9974]: auxpropfunc error no mechanism available Nov 25 17:56:59 smbldap ldap: slapd startup succeededs Nov 25 17:57:07 smbldap smbd[9987]: [2008/11/25 17:57:07, 0] lib/smbldap.c:smbldap_connect_system(850) Nov 25 17:57:07 smbldap smbd[9987]: failed to bind to server with dn= cn=Manager,dc=fcb.net,dc=. Error: Can't contact LDAP server Nov 25 17:57:07 smbldap smbd[9987]: (unknown) Nov 25 17:57:23 smbldap smbd[9987]: [2008/11/25 17:57:23, 0] lib/smbldap.c:smbldap_search_suffix(1155) Nov 25 17:57:23 smbldap smbd[9987]: smbldap_search_suffix: Problem during the LDAP search: (unknown) (Timed out)

1) Is my ldap working fine?

Can't tell, your ldap logging may not be high enough.

2) Why can't samba bind to Ldap?

You didn't include any of your samba (ldap-related) configuration, and that would really be more relevant on a samba list.