Web lists-archives.com

[Samba] LDAP query and result: better field for username?




Currently for my user:

 root@vdmsv1:/etc/exim4# ldbsearch -H ldap://vdcsv1 -P -b DC=ad,DC=fvg,DC=lnf,DC=it "(cn=gaio)" | grep ": gaio$"
 cn: gaio
 name: gaio
 sAMAccountName: gaio
 uid: gaio
 msSFU30Name: gaio

what field is betetr to use for querying for user 'gaio'?

'uid' no (because RFC2307 data can be missing), so?

'sAMAccountName'? or 'cn'?


Thanks.


PS: clearly the same for groups:

 root@vdmsv1:/etc/exim4# ldbsearch -H ldap://vdcsv1 -P -b DC=ad,DC=fvg,DC=lnf,DC=it "(cn=unixadm)" | grep ": unixadm$"
 cn: unixadm
 name: unixadm
 sAMAccountName: unixadm
 msSFU30Name: unixadm

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba