[Samba] samba member logon.. question.

Luca Olivetti luca at wetron.es
Fri Apr 10 01:54:31 MDT 2015

El 09/04/15 a les 18:31, Rowland Penny ha escrit:

> If your tools rely on the posix objectclasses being there, then they are
> broken. The posix objectclasses are auxiliaries of other AD
> objectclasses and as such, no windows tools will add them.

but, e.g., samba-tool with --uid will:

luca at ubutest:~$ sudo samba-tool user add tararo tarari
--use-username-as-cn --given-name=Tararo --surname=QueTeVi
--mail-address=tararo at wetron.es --uid=tararo --gid-number=513
User 'tararo' created successfully
luca at ubutest:~$ ldapsearch -H ldap://localhost -x -D
'CN=luca,CN=Users,DC=samba,DC=wetron,DC=es' -W -b
'dc=samba,dc=wetron,dc=es' '(cn=tararo)'
Enter LDAP Password:
# extended LDIF
# LDAPv3
# base <dc=samba,dc=wetron,dc=es> with scope subtree
# filter: (cn=tararo)
# requesting: ALL

# tararo, Users, samba.wetron.es
dn: CN=tararo,CN=Users,DC=samba,DC=wetron,DC=es
cn: tararo
sn: QueTeVi
givenName: Tararo
instanceType: 4
whenCreated: 20150410075219.0Z
whenChanged: 20150410075219.0Z
displayName: Tararo QueTeVi
uSNCreated: 9330
name: tararo
objectGUID:: Fbd97R84oEqCI6vpoOXk2g==
badPwdCount: 0
codePage: 0
countryCode: 0
badPasswordTime: 0
lastLogoff: 0
lastLogon: 0
primaryGroupID: 513
accountExpires: 9223372036854775807
logonCount: 0
sAMAccountName: tararo
sAMAccountType: 805306368
userPrincipalName: tararo at samba.wetron.es
mail: tararo at wetron.es
uid: tararo
gidNumber: 513
objectClass: top
objectClass: posixAccount
objectClass: person
objectClass: organizationalPerson
objectClass: user
pwdLastSet: 130731259390000000
userAccountControl: 512
uSNChanged: 9334
distinguishedName: CN=tararo,CN=Users,DC=samba,DC=wetron,DC=es

# search reference
ref: ldap://samba.wetron.es/CN=Configuration,DC=samba,DC=wetron,DC=es

# search reference
ref: ldap://samba.wetron.es/DC=DomainDnsZones,DC=samba,DC=wetron,DC=es

# search reference
ref: ldap://samba.wetron.es/DC=ForestDnsZones,DC=samba,DC=wetron,DC=es

# search result
search: 2
result: 0 Success

# numResponses: 5
# numEntries: 1
# numReferences: 3

Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007

More information about the samba mailing list