Re: [Samba] User in Samba 4

2010-05-27 Thread Viatte Frédéric
Thank you for your reply, I tried to do:

ldbsearch-H / usr / local / samba / private / sam.ldb

but I see no user name!

And for the package I install, it's probably a version for ubuntu, because on 
OpenSUSE, it does not exist!

Thank you

-Message d'origine-
De : Michael Wood [mailto:esiot...@gmail.com] 
Envoyé : mercredi, 26. mai 2010 14:46
À : Viatte Frédéric
Cc : samba@lists.samba.org
Objet : Re: [Samba] User in Samba 4

2010/5/26 Viatte Frédéric frederic.via...@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 esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User in Samba 4

2010-05-27 Thread Michael Wood
2010/5/27 Viatte Frédéric frederic.via...@rpn.ch:
 Another small question

 At what time the database is it create? What command to create it?

It is created by setup/provision.

 -Message d'origine-
 De : Michael Wood [mailto:esiot...@gmail.com]
 Envoyé : mercredi, 26. mai 2010 14:46
 À : Viatte Frédéric
 Cc : samba@lists.samba.org
 Objet : Re: [Samba] User in Samba 4

 2010/5/26 Viatte Frédéric frederic.via...@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 esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User in Samba 4

2010-05-27 Thread Michael Wood
2010/5/27 Viatte Frédéric frederic.via...@rpn.ch:
 Thank you for your reply, I tried to do:

 ldbsearch-H / usr / local / samba / private / sam.ldb

 but I see no user name!

What about with:

$ /usr/local/samba/bin/wbinfo -u

When I run that against a new Samba4 installation after running
setup/provision and then creating a user with net newuser I get
this:

$ /usr/local/samba/bin/wbinfo -u
Administrator
Guest
krbtgt
dns
michael

 And for the package I install, it's probably a version for ubuntu, because on 
 OpenSUSE, it does not exist!

The packages necessary for the ldapsearch are the OpenLDAP client
utilities and the SASL GSSAPI mechanism.  On Ubuntu these are
ldap-utils and either libsasl2-modules-gssapi-heimdal or
libsasl2-modules-gssapi-mit.  I don't know what they are on OpenSUSE.

You probably want to use the net command and wbinfo etc., rather
than ldbsearch or ldapsearch.  Or you can use the GUI tools from a
Windows machine as mentioned on the Samba4 HOWTO.

 -Message d'origine-
 De : Michael Wood [mailto:esiot...@gmail.com]
 Envoyé : mercredi, 26. mai 2010 14:46
 À : Viatte Frédéric
 Cc : samba@lists.samba.org
 Objet : Re: [Samba] User in Samba 4

 2010/5/26 Viatte Frédéric frederic.via...@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 esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] User in Samba 4

2010-05-26 Thread Viatte Frédéric
Hello

Do you know where its users stored on the server Samba 4 ?

Are they in a database?

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


Re: [Samba] User in Samba 4

2010-05-26 Thread Michael Wood
2010/5/26 Viatte Frédéric frederic.via...@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 esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba