[Samba] Need clarification

Bradley W. Langhorst brad at langhorst.com
Tue Nov 12 20:59:00 GMT 2002


On Tue, 2002-11-12 at 12:03, Saulius Gurklys wrote:
> Hi,
>   I'm trying to run samba 2.2.6 + OpenLDAP as user/group
> database ( not /etc/passwd). nss_ldap+pam_ldap is installed and
> working OK, as I can login using ssh, or trough
> console with one of ldap user.
>   But trying to connect to samba, when samba is ran as
> #samba -d 2 -i
> I get:
> ...
> init_sam_from_ldap: User [ldapuser] does not ave a uid!
> pass_check_smb failed - invalid password for user [ldapuser]
> Rejecting user 'ldapuser': authentication failed
> ...
> 
> Does it mean that samba does not use posixaccount ldap user ?
it does
> One more question does anybody can confirm/deny that samba 2.2.x
> work with users/groups from LDAP (without /etc/passwd)?
yes it works fine.

you need to add the samba stuff to the ldap store too
the posixstuff is not sufficient. follow the howto

 
here is one of my ldap users
# bwlang, People, bitc, unh, edu
dn: uid=bwlang,ou=People,dc=bitc,dc=unh,dc=edu
loginShell: /bin/bash
gidNumber: 100
shadowMax: 99999
homeDirectory: /home/bwlang
shadowWarning: 7
uidNumber: 603
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
objectClass: sambaAccount
objectClass: phpgwAccount
objectClass: phpgwAccount
phpgwAccountType: u
phpgwAccountStatus: A
phpgwAccountExpires: -1
phpgwAccountLastLogin: 1036765185
phpgwAccountLastLoginFrom: xxxxxxx
shadowLastChange: 11999
uid: bwlang
rid: 2206
primaryGroupID: 1077
pwdLastSet: 1036773037
displayName: brad langhorst
cn: brad langhorst
logonTime: 0
logoffTime: 2147483647
kickoffTime: 2147483647
pwdCanChange: 0
pwdMustChange: 1038587437
acctFlags: [U

the password fields have been removed

brad




More information about the samba mailing list