[prev in list] [next in list] [prev in thread] [next in thread]
List: forgerock-opendj
Subject: Re: [Opendj] ldapclient (solaris11) problem - nisDomainObject not found
From: Cristina Valderas <cvalderas () corenetworks ! es>
Date: 2014-05-13 11:19:15
Message-ID: 5371FFB3.5000409 () corenetworks ! es
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Jens,
my apologies for the delay,
yeah, you were right after adding the nisDomainObject objectclass as you
suggested everything looks to work fine, thanks!!
Thank you very much to you all for your help.
best regards,
Cristina
On 05/10/2014 03:13 PM, Jens Elkner wrote:
> On Fri, May 09, 2014 at 11:52:03AM +0100, Jon Murray wrote:
> Hi Cristina
> ...
> > It sounds like your schema may be ok but you DIT is not. Have you run idsconfig \
> > against the directory ?
> ...
> > From: Cristina Valderas <cvalderas@corenetworks.es>
> ...
> > The ldapsearch doesn't show anything:
> >
> > # ldapsearch -D "cn=Directory Manager" -w mypassword -s sub -b
> > "dc=mydomian,dc=es" objectclass=nisDomainObject
> > #
> Basically what happens under the hood is:
>
> # (1) find baseDNs
> ldapsearch -h $server -b '' -s base '(objectclass=*)' namingcontexts
> # assuming your suffix is 'o=org' it would return this
>
> # (2) find nisdomain in namingcontexts (assuming you store your data
> # below ou=whatever and named your nisdomain 'mydomain.es')
> ldapsearch -h $server -b 'o=org' -s sub \
> '(&(objectclass=nisDomainObject)(nisdomain=mydomain.es))' dn
> # would return 'dn: ou=whatever,o=org'
>
> # (3) fetch the profile
> ldapsearch -h $server -s sub -b 'ou=profile,ou=whatever,o=org' \
> '(&(|(objectclass=SolarisNamingProfile)(objectclass=DUAConfigProfile))(cn=default))'
>
>
> > I have look for this objectclass in the schema and there is it. Although
> > it is not found under mydomian.es.
> Yes, the default OpenDJ schema works out of the box wrt. S11 and friends
> (no modification needed).
>
> > I'm sure I'm missing something basic, so far I have only executed
> > ldapclient with Sun Directory and I didn't need to do anything, just to
> > execute the same line.
> Yepp, you probably forgot to add the info required in step (2). E.g.:
>
> print 'dn: dc=mydomian,dc=es
> changetype: modify
> add: objectclass
> objectclass: nisDomainObject
> -
> add: nisdomain
> nisdomain: mydomain.es
> ' | ldapmodify -h $server ...
>
> Have fun,
> jel.
--
*Cristina Valderas* | Departamento de Desarrollo de Productos
core networks
Tel.: +34 91 767 10 65 Mov.: +34 666 594 361
C.E.Parque Norte, Edificio Olmo, Planta 1 Serrano Galvache 56 | 28033,
Madrid
Fax: +34 91 766 20 20
core facebook
<https://www.facebook.com/pages/Core-Networks/150695541723604> core
twitter <https://twitter.com/corenetw> core linkedin
<http://www.linkedin.com/company/core-networks-sl>
<BR CLEAR="ALL">
<HR width="100%" />
<font color="#585858" face="verdana,arial,helvetica" size="1">
Según el Artículo 5 de la L.O.P.D, le informamos que sus datos constan \
en un fichero titularidad de CORE NETWORKS, S.L., cuya finalidad es la gestión \
administrativa. Podrá ejercer su derecho de acceso, rectificación, \
cancelación y oposición mediante correo postal a C/ Serrano Galvache, \
56, Edificio Olmo, 1 Planta - C.P. 28033 (MADRID), o enviando un correo \
electrónico a info@corenetworks.es. </font>
[Attachment #5 (multipart/related)]
[Attachment #7 (text/html)]
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Jens,<br>
<br>
my apologies for the delay,<br>
yeah, you were right after adding the nisDomainObject objectclass
as you suggested everything looks to work fine, thanks!!<br>
<br>
Thank you very much to you all for your help.<br>
<br>
best regards,<br>
Cristina<br>
<br>
On 05/10/2014 03:13 PM, Jens Elkner wrote:<br>
</div>
<blockquote cite="mid:20140510131346.GA5914@marder.cs.ovgu.de"
type="cite">
<pre wrap="">On Fri, May 09, 2014 at 11:52:03AM +0100, Jon Murray wrote:
Hi Cristina
...
</pre>
<blockquote type="cite">
<pre wrap="">It sounds like your schema may be ok but you DIT is not. Have \
you run idsconfig against the directory ? </pre>
</blockquote>
<pre wrap="">...
</pre>
<blockquote type="cite">
<pre wrap="">From: Cristina Valderas <a class="moz-txt-link-rfc2396E" \
href="mailto:cvalderas@corenetworks.es"><cvalderas@corenetworks.es></a> </pre>
</blockquote>
<pre wrap="">...
</pre>
<blockquote type="cite">
<pre wrap="">The ldapsearch doesn't show anything:
# ldapsearch -D "cn=Directory Manager" -w mypassword -s sub -b
"dc=mydomian,dc=es" objectclass=nisDomainObject
#
</pre>
</blockquote>
<pre wrap="">
Basically what happens under the hood is:
# (1) find baseDNs
ldapsearch -h $server -b '' -s base '(objectclass=*)' namingcontexts
# assuming your suffix is 'o=org' it would return this
# (2) find nisdomain in namingcontexts (assuming you store your data
# below ou=whatever and named your nisdomain 'mydomain.es')
ldapsearch -h $server -b 'o=org' -s sub \
'(&(objectclass=nisDomainObject)(nisdomain=mydomain.es))' dn
# would return 'dn: ou=whatever,o=org'
# (3) fetch the profile
ldapsearch -h $server -s sub -b 'ou=profile,ou=whatever,o=org' \
'(&(|(objectclass=SolarisNamingProfile)(objectclass=DUAConfigProfile))(cn=default))'
</pre>
<blockquote type="cite">
<pre wrap="">I have look for this objectclass in the schema and there is it. \
Although it is not found under mydomian.es.
</pre>
</blockquote>
<pre wrap="">
Yes, the default OpenDJ schema works out of the box wrt. S11 and friends
(no modification needed).
</pre>
<blockquote type="cite">
<pre wrap="">I'm sure I'm missing something basic, so far I have only \
executed ldapclient with Sun Directory and I didn't need to do anything, just to
execute the same line.
</pre>
</blockquote>
<pre wrap="">
Yepp, you probably forgot to add the info required in step (2). E.g.:
print 'dn: dc=mydomian,dc=es
changetype: modify
add: objectclass
objectclass: nisDomainObject
-
add: nisdomain
nisdomain: mydomain.es
' | ldapmodify -h $server ...
Have fun,
jel.
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font style="font-size: 9pt;color:4d4d4d" size="1"> <b>Cristina
Valderas</b> | Departamento de Desarrollo de Productos<br>
<br>
<img src="cid:part1.09020106.08060505@corenetworks.es" alt="core
networks">
<br>
Tel.: +34 91 767 10 65 Mov.: +34 666 594 361<br>
</font>
<font style="font-size: 7pt; color:4d4d4d" size="1">
C.E.Parque Norte, Edificio Olmo, Planta 1 Serrano Galvache 56 |
28033, Madrid
<br>
Fax: +34 91 766 20 20
</font>
<br>
<br>
<a
href="https://www.facebook.com/pages/Core-Networks/150695541723604"><img
src="cid:part2.03020401.01000101@corenetworks.es" alt="core
facebook"></a>
<a href="https://twitter.com/corenetw"><img
src="cid:part4.01080800.08060907@corenetworks.es" alt="core
twitter"></a>
<a href="http://www.linkedin.com/company/core-networks-sl"><img
src="cid:part6.09080302.06010201@corenetworks.es" alt="core
linkedin"></a>
</div>
<br>
<BR CLEAR="ALL">
<HR width="100%" />
<font color="#585858" face="verdana,arial,helvetica" size="1">
Según el Artículo 5 de la L.O.P.D, le informamos que sus datos constan \
en un fichero titularidad de CORE NETWORKS, S.L., cuya finalidad es la gestión \
administrativa. Podrá ejercer su derecho de acceso, rectificación, \
cancelación y oposición mediante correo postal a C/ Serrano Galvache, \
56, Edificio Olmo, 1 Planta - C.P. 28033 (MADRID), o enviando un correo \
electrónico a info@corenetworks.es. </font>
<br>
</body>
</html>
_______________________________________________
OpenDJ mailing list
OpenDJ@forgerock.org
https://lists.forgerock.org/mailman/listinfo/opendj
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic