Hi @ll: I need to get the objectClass of some objects by giving theirs DistinguishedNames. I've try with this: #ldbsearch -H 127.0.0.1 dn='CN=nameTest,CN=Users,DC=example,DC=com' But: # returned 3 records # 0 entries # 3 referrals Any idea? How Can I to specify a DN in ldbsearch command. Thanks. ___________________________________________ Felipe_ González_Santiago The University of Informatics Sciences invites you to participate in the Scientific Conference UCIENCIA 2016, [extended] deadline: september 30th. Conferencia Científica UCIENCIA 2016, plazo de envío de trabajos hasta el 30 de septiembre. http://uciencia.eventos.uci.cu/
On Tue, 4 Oct 2016 08:48:47 -0400 (CDT) Felipe_G0NZÁLEZ_SANTIAG0 via samba <samba at lists.samba.org> wrote:> Hi @ll: > I need to get the objectClass of some objects by giving theirs > DistinguishedNames. I've try with this: #ldbsearch -H 127.0.0.1 > dn='CN=nameTest,CN=Users,DC=example,DC=com' But: > # returned 3 records > # 0 entries > # 3 referrals > > Any idea? > How Can I to specify a DN in ldbsearch command. >Do you mean something like this: # record 1 dn: CN=Rowland Penny,CN=Users,DC=samdom,DC=example,DC=com objectClass: top objectClass: securityPrincipal objectClass: person objectClass: organizationalPerson objectClass: user To get that, I used this: ldbsearch -H ldap://127.0.0.1 '(cn=Rowland Penny)' objectClass -UAdministrator Rowland
On 09:31:09 wrote Felipe_G0NZÁLEZ_SANTIAG0 via samba:> Hi @ll: > I need to get the objectClass of some objects by giving theirs > DistinguishedNames. I've try with this: #ldbsearch -H 127.0.0.1 > dn='CN=nameTest,CN=Users,DC=example,DC=com' But: > # returned 3 records > # 0 entries > # 3 referrals > > Any idea? > How Can I to specify a DN in ldbsearch command.ldbsearch -H <URI> -s base -b <DN> objectclass ldbsearch -H ldap://debby-3 -s base -b cn=admin,dc=kronprinz,dc=xx objectclass> Thanks. > > ___________________________________________ > Felipe_ González_Santiago > > The University of Informatics Sciences invites you to participate in > the Scientific Conference UCIENCIA 2016, [extended] deadline: > september 30th. Conferencia Científica UCIENCIA 2016, plazo de envío > de trabajos hasta el 30 de septiembre. > http://uciencia.eventos.uci.cu/-- Gruss Harry Jede