Mauro Sanna ha scritto:
Diciamo che per ora la cosa migliore e' creare un attributo custom, con
sintassi magari IA5string, e una objectClass per contenerlo, e aggiungere il
utto agli utenti.
Com'e' questa sintassi IA5string, su
http://www.openldap.org/doc/admin24/schema.html#Extending%20Schema c'e'
una tabella con le sintassi piu' comuni e non c'e' la IA5string.
Per aggiungere un attributo castom basta modificare uno degli schemi di
openldap. Io ho modificato "Inetorgperson.schema" aggiungendo alla fine
quando segue:
attributetype ( 1.1.2.1.1
NAME '*MioAttributoPersonale*'
DESC '*Mio Commento Personale*'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
# inetOrgPerson
# The inetOrgPerson represents people who are associated with an
# organization in some way. It is a structural class and is derived
# from the organizationalPerson which is defined in X.521 [X521].
objectclass ( 2.16.840.1.113730.3.2.2
NAME 'inetOrgPerson'
DESC 'RFC2798: Internet Organizational Person'
SUP organizationalPerson
STRUCTURAL
MAY (
audio $ businessCategory $ carLicense $ departmentNumber $
displayName $ employeeNumber $ employeeType $ givenName $
homePhone $ homePostalAddress $ initials $ jpegPhoto $
labeledURI $ mail $ manager $ mobile $ o $ pager $
photo $ roomNumber $ secretary $ uid $ userCertificate $
x500uniqueIdentifier $ preferredLanguage $
userSMIMECertificate $ userPKCS12 $ *MioAttributoPersonale*)
)
Poi con i tool di OpenLdap gli ho assegnato il valore che volevo, vedi a
riguardo il tool ldapmodify.
Spero di esserti stato di aiuto.
Ciao
S.F.
Inetorg
------------------------------------------------------------------------
_______________________________________________
OpenLDAP mailing list
OpenLDAP@mail.sys-net.it
https://www.sys-net.it/mailman/listinfo/openldap
--
Silvio Fabi - NBS srl
Area Sistemi
tel. 0735/7626242
mail: [EMAIL PROTECTED]
_______________________________________________
OpenLDAP mailing list
OpenLDAP@mail.sys-net.it
https://www.sys-net.it/mailman/listinfo/openldap