<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
il probema qui era che non avevo valorizzato tutti gli attributi
obbligari.<br>
ora ho un'alta domanda:<br>
sto provando ad eseguire una ricerca cosi:<br>
--------------------------------------------------------------------------------------------------------------------------<br>
$ ldapsearch -h localhost -p 10389 -b "o=sevenSeas" -s sub
"(cn=James Hook)" +<br>
version: 1<br>
dn: cn=James Hook,ou=people,o=sevenSeas<br>
accessControlSubentries:
cn=sevenSeasAuthorizationRequirementsACISubentry,o=sevenSeas<br>
creatorsName: cn=Horatio Nelson,ou=people,o=sevenSeas<br>
createTimestamp: 20061203140109Z<br>
................................................................................................................................<br>
perchè dà questo errore?<br>
-----------------------------------------------------------------------------------------------------------<br>
$ ldapsearch -h localhost -p 10389 -b "o=sevenSeas" -s sub
"(cn=James Hook)" +<br>
version: 1<br>
#!RESULT ERROR<br>
#!CONNECTION <a class="moz-txt-link-freetext" href="ldap://localhost:10389">ldap://localhost:10389</a><br>
#!DATE 2015-04-24T12:04:28.816<br>
#!ERROR [LDAP: error code 65 - OBJECT_CLASS_VIOLATION: failed for
MessageType : ADD_REQUEST Message ID : 23 Add Request :
Entry dn[n]: cn=James Hook,ou=people,o=sevenSeas
createTimestamp: 20061203140109Z accessControlSubentries:
cn=sevenSeasAuthorizationRequirementsACISubentry,o=sevenSeas
creatorsName: cn=Horatio Nelson,ou=people,o=sevenSeas : ERR_60 Entry
cn=James Hook,ou=people,o=sevenSeas does not contain a STRUCTURAL
ObjectClass]<br>
dn: cn=James Hook,ou=people,o=sevenSeas<br>
accessControlSubentries:
cn=sevenSeasAuthorizationRequirementsACISubentry,o=<br>
sevenSeas<br>
creatorsName: cn=Horatio Nelson,ou=people,o=sevenSeas<br>
createTimestamp: 20061203140109Z<br>
---------------------------------------------------------------------<br>
Ciao e grazie<br>
<br>
<div class="moz-cite-prefix">Il 21/04/2015 13:20, Nicola Scendoni ha
scritto:<br>
</div>
<blockquote
cite="mid:CAOffQzZEjMXj7-Uye4qwcsvLXhCOC92uOmVSQ9QOBGXNcSYvjA@mail.gmail.com"
type="cite">
<div dir="ltr">C'e' un errore di sintassi. Dove hai:
<div><br>
</div>
<div><span style="font-size:12.8000001907349px">ou: Jusi
Pomenti,ou=people,o=sevenSeas</span><br
style="font-size:12.8000001907349px">
<span style="font-size:12.8000001907349px">dn:
cn=bacco,ou=Jusi Pomenti,ou=people,o=sevenSeas</span><span
class="im" style="font-size:12.8000001907349px"><br>
objectclass: inetOrgPerson<br>
objectclass: organizationalPerson<br>
objectclass: person<br>
objectclass: top<br>
</span><span style="font-size:12.8000001907349px">cn: Bacco</span><br
style="font-size:12.8000001907349px">
<span style="font-size:12.8000001907349px">description:
bellissimo gattone rosso</span><br
style="font-size:12.8000001907349px">
</div>
<div><span style="font-size:12.8000001907349px"><br>
</span></div>
<div><span style="font-size:12.8000001907349px">dovrebbe
esserci:</span></div>
<div><span style="font-size:12.8000001907349px"><br>
</span></div>
<div><span style="font-size:12.8000001907349px">dn:
cn=bacco,ou=Jusi Pomenti,ou=people,o=sevenSeas</span><span
class="im" style="font-size:12.8000001907349px"><br>
objectclass: inetOrgPerson<br>
objectclass: organizationalPerson<br>
objectclass: person<br>
objectclass: top<br>
</span><span style="font-size:12.8000001907349px">cn: Bacco</span><br
style="font-size:12.8000001907349px">
<span style="font-size:12.8000001907349px">description:
bellissimo gattone rosso</span><br
style="font-size:12.8000001907349px">
</div>
<div><span style="font-size:12.8000001907349px"><br>
</span></div>
<div><span style="font-size:12.8000001907349px">negli ldif
identifchi la entry </span>sempre con il dn.<br>
<br>
</div>
<div>Una cosa "non comune" che hai fatto, anche se non e'
errata, e' quella di utilizzare ou come RDN.<br>
In altre parole un oggetto di tipo inetOrgPerson generalmente
e' identificato con l'attributo uid o cn e non con ou.<br>
La semantica dei tre attributi e' :<br>
cn = common name<br>
uid= unique identifier<br>
ou = organizational unit (in questo caso di cui fa parte la
persona)<br>
<br>
LDAP ti fa identificare un oggetto (nel dn) con l'attributo
che preferisci, per questo l'esempio non e' "sbagliato".<span
style="font-size:12.8000001907349px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">Il giorno 21 aprile 2015 11:54, Jusi
Pomenti <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jusipom@gmail.com" target="_blank">jusipom@gmail.com</a>></span>
ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Ciao a tutti,<br>
ora funziona !!!<br>
ho provato pero' a fare delle altre entry e,quando vado
in profondità,mi da errore:<span class=""><br>
-------------------------------------------------------------<br>
dn: ou=people,o=sevenSeas<br>
objectclass: organizationalUnit<br>
objectclass: top<br>
ou: people<br>
<br>
</span> dn: cn=Elisa Pomenti,ou=people,o=sevenSeas<span
class=""><br>
objectclass: inetOrgPerson<br>
objectclass: organizationalPerson<br>
objectclass: person<br>
objectclass: top<br>
</span> cn: Elisa Pomenti<br>
description: intellettuale<br>
sn: Pomenti<br>
mail: <a moz-do-not-send="true"
href="mailto:elisapomenti@gmail.com" target="_blank">elisapomenti@gmail.com</a><br>
userpassword: maya<br>
<br>
<br>
dn: cn=Luciana Abenda,ou=people,o=sevenSeas<span class=""><br>
objectclass: inetOrgPerson<br>
objectclass: organizationalPerson<br>
objectclass: person<br>
objectclass: top<br>
</span> cn: Luciana Abenda<br>
description: casalinga sui generis<br>
sn: Abenda<br>
mail: <a moz-do-not-send="true"
href="mailto:luckyabe8@gmail.com" target="_blank">luckyabe8@gmail.com</a><br>
userpassword: mao<br>
<br>
<br>
dn: ou=Jusi Pomenti,ou=people,o=sevenSeas<span class=""><br>
objectclass: inetOrgPerson<br>
objectclass: organizationalPerson<br>
objectclass: person<br>
objectclass: top<br>
</span> cn: Jusi Pomenti<br>
description: programmatore<br>
sn: Pomenti<br>
mail: <a moz-do-not-send="true"
href="mailto:jusipom@gmail.com" target="_blank">jusipom@gmail.com</a><br>
userpassword: bacco<br>
<br>
ou: Jusi Pomenti,ou=people,o=sevenSeas<br>
dn: cn=bacco,ou=Jusi Pomenti,ou=people,o=sevenSeas<span
class=""><br>
objectclass: inetOrgPerson<br>
objectclass: organizationalPerson<br>
objectclass: person<br>
objectclass: top<br>
</span> cn: Bacco<br>
description: bellissimo gattone rosso<br>
-------------------------------------------------------------------------------<br>
per esempio,lo script qui su da errore quando tento
di inserire "bacco" sottto "jusi pomenti"?<br>
inoltre,non ho capito a cosa servono le
"objectclass";me lo spiegate?<br>
Ciao e grazie
<div>
<div class="h5"><br>
<br>
<br>
<br>
<div>Il 17/04/2015 21:50, Roberto Polli ha scritto:<br>
</div>
<blockquote type="cite">
<p dir="ltr">Ciao Jusi. </p>
<p dir="ltr">Stai aggiungendo due entry. Non una. </p>
<p dir="ltr">Quindi l. Errore è sulla entry</p>
<p dir="ltr">ou=people</p>
<div class="gmail_quote">Il 17/apr/2015 21:11 "Jusi
Pomenti" <<a moz-do-not-send="true"
href="mailto:jusipom@gmail.com" target="_blank">jusipom@gmail.com</a>>
ha scritto:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">Ciao,<br>
sto seguendo il tutorial su apache ds che mi
avete consigliato voi e ho provato ad
inserire una entry:<br>
<br>
----------------------------------------------------------------------------------<br>
dn: ou=people,o=sevenSeas<br>
objectclass: organizationalUnit<br>
objectclass: top<br>
ou: people<br>
<br>
dn: cn=James Hook,ou=people,o=sevenSeas<br>
objectclass: inetOrgPerson<br>
objectclass: organizationalPerson<br>
objectclass: person<br>
objectclass: top<br>
cn: James Hook<br>
description: A pirate captain and Peter Pan's
nemesis<br>
sn: Hook<br>
mail: jhook@neverland<br>
userpassword: peterPan<br>
-------------------------------------------------------------------------------<br>
<br>
Perchè mi dà questo errore?<br>
------------------------------------------<br>
#!RESULT ERROR<br>
#!CONNECTION <a moz-do-not-send="true">ldap://localhost:10389</a><br>
#!DATE 2015-04-17T20:58:29.090<br>
#!ERROR ENTRY_ALREADY_EXISTS: failed for
MessageType : ADD_REQUEST Message ID : 24
Add Request : Entry dn[n]:
ou=people,o=sevenSeas objectclass:
organizationalUnit objectclass: top ou:
people : ERR_250_ENTRY_ALREADY_EXISTS
ou=people,o=sevenSeas already exists!<br>
dn: ou=people,o=sevenSeas<br>
objectclass: organizationalUnit<br>
objectclass: top<br>
ou: people<br>
<br>
---------------------------------------------------<br>
dice che l'entry esiste,ma nell'albero non la
vedo;perchè?<br>
Ciao e grazie.<br>
<br>
-- <br>
-------------------------------<br>
Junior Silvestro Pomenti<br>
Latina<br>
<br>
Sito Web: <a moz-do-not-send="true"
href="http://www.jusipom.it" target="_blank">www.jusipom.it</a><br>
Email: jusipom(at)<a moz-do-not-send="true"
href="http://gmail.com" target="_blank">gmail.com</a><br>
info(at)<a moz-do-not-send="true"
href="http://jusipom.it" target="_blank">jusipom.it</a><br>
-------------------------------<br>
<br>
_______________________________________________<br>
<a moz-do-not-send="true"
href="http://www.llg.it" target="_blank">http://www.llg.it</a><br>
latina mailing list<br>
<a moz-do-not-send="true"
href="mailto:latina@lists.linux.it"
target="_blank">latina@lists.linux.it</a><br>
<a moz-do-not-send="true"
href="http://lists.linux.it/listinfo/latina"
target="_blank">http://lists.linux.it/listinfo/latina</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
<a moz-do-not-send="true" href="http://www.llg.it" target="_blank">http://www.llg.it</a>
latina mailing list
<a moz-do-not-send="true" href="mailto:latina@lists.linux.it" target="_blank">latina@lists.linux.it</a>
<a moz-do-not-send="true" href="http://lists.linux.it/listinfo/latina" target="_blank">http://lists.linux.it/listinfo/latina</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
-------------------------------
Junior Silvestro Pomenti
Latina
Sito Web: <a moz-do-not-send="true" href="http://www.jusipom.it" target="_blank">www.jusipom.it</a>
Email: jusipom(at)<a moz-do-not-send="true" href="http://gmail.com" target="_blank">gmail.com</a>
info(at)<a moz-do-not-send="true" href="http://jusipom.it" target="_blank">jusipom.it</a>
-------------------------------</pre>
</div>
</div>
</div>
<br>
_______________________________________________<br>
<a moz-do-not-send="true" href="http://www.llg.it"
target="_blank">http://www.llg.it</a><br>
latina mailing list<br>
<a moz-do-not-send="true"
href="mailto:latina@lists.linux.it">latina@lists.linux.it</a><br>
<a moz-do-not-send="true"
href="http://lists.linux.it/listinfo/latina"
target="_blank">http://lists.linux.it/listinfo/latina</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.llg.it">http://www.llg.it</a>
latina mailing list
<a class="moz-txt-link-abbreviated" href="mailto:latina@lists.linux.it">latina@lists.linux.it</a>
<a class="moz-txt-link-freetext" href="http://lists.linux.it/listinfo/latina">http://lists.linux.it/listinfo/latina</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
-------------------------------
Junior Silvestro Pomenti
Latina
Sito Web: <a class="moz-txt-link-abbreviated" href="http://www.jusipom.it">www.jusipom.it</a>
Email: jusipom(at)gmail.com
info(at)jusipom.it
-------------------------------</pre>
</body>
</html>