Re: ldap add attribute and value
- From: Nigel Wade <nmw@xxxxxxxxxxxx>
- Date: Mon, 26 Mar 2007 16:58:52 +0100
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
.
- Follow-Ups:
- Re: ldap add attribute and value
- From: RigasMinho
- Re: ldap add attribute and value
- References:
- ldap add attribute and value
- From: RigasMinho
- ldap add attribute and value
- Prev by Date: Re: anonymous class
- Next by Date: Re: Loading Applets
- Previous by thread: Re: ldap add attribute and value
- Next by thread: Re: ldap add attribute and value
- Index(es):
Relevant Pages
|
Loading