Re: ldap add attribute and value



RigasMinho wrote:

Hi,
Is there a way to add an ldap attritbute to an entry and then definate
a certail value to the entry.

For example I have a user id - with John Smith
When i look at the entry it says
"DOB" - 00-00-00
"Password" - 12345

How do I make it so that when my java code runs it adds a new
attritbute like "ssn" and puts in a value for work as wel?

So afterwards you see -
"DOB" - 00-00-00
"Password" - 12345
"Social Security" - 12345


I have this but it doesnt work
int SSN=12345
ldapAttr1 = new LDAPAttribute("Social Security",SSN);

Any attribute you use in an LDAP directory must have a definition in the schema
as an attributetype. This defines the meaning of the attribute and the types of
data it holds. The schema for an objectclass defines what attributes can be
contained within the object. You can't just add any piece of text as an
attribute.

What is the schema for your user id, and does it include any attribute for
"Social Security"?

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
.



Relevant Pages

  • Re: ldap add attribute and value
    ... Is there a way to add an ldap attritbute to an entry and then definate ... Any attribute you use in an LDAP directory must have a definition in the schema ...
    (comp.lang.java.programmer)
  • ldap add attribute and value
    ... Is there a way to add an ldap attritbute to an entry and then definate ... a certail value to the entry. ... I have this but it doesnt work ...
    (comp.lang.java.programmer)
  • Re: ldap add attribute and value
    ... Is there a way to add an ldap attritbute to an entry and then definate ... I have this but it doesnt work ... then load the objectclass of this entry. ...
    (comp.lang.java.programmer)
  • Re: ADAM bindable object question
    ... As for the non-comformant schema, ... and have done in the past when an auxiliary object class ... for an existing entry of *arbitrary* object ... >> The problem I'm seeing is when i try to add these object classes ...
    (microsoft.public.windows.server.active_directory)
  • ADPrep /forestprep fails - Note for Bob Qin
    ... find the CN=labeledURI entry. ... modifying the CN=labeledURI entry. ... can I do an authoritative restore of the system state? ... authoritative restore restore the schema changes? ...
    (microsoft.public.windows.server.migration)

Loading