samba-users May 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: Re: [Samba] User in Samba 4

Re: [Samba] User in Samba 4

From: Michael Wood <esiotrot_at_nospam>
Date: Wed May 26 2010 - 12:45:50 GMT
To: Viatte Frédéric <Frederic.Viatte@rpn.ch>

2010/5/26 Viatte Frédéric <Frederic.Viatte@rpn.ch>:
> Hello
>
> Do you know where its users stored on the server Samba 4 ?
>
> Are they in a database?
Yes, they are in /usr/local/samba/private/sam.ldb.

e.g. try:

ldbsearch -H /usr/local/samba/private/sam.ldb '(objectClass=user)'

You can also access the information via LDAP over the network. e.g.:

$ sudo apt-get install ldap-utils libsasl2-modules-gssapi-heimdal
$ kinit administrator
$ ldapsearch -h localhost -Y GSSAPI '(objectClass=user)' cn

-- Michael Wood <esiotrot@gmail.com> -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba