----- Forwarded message from Mark Prior <mr...@ia...> -----
Date: Tue, 21 May 2002 21:11:14 +0930
To: Graham Barr <gb...@po...>
From: Mark Prior <mr...@ia...>
Subject: Question relating to Net::LDAP 0.25
I am attempting to use Net::LDAP and I have run into a problem that
I'm hoping you might have some advice on.
I am writing a CGI to allow our staff to modify their entries. I am
pulling out the objectClass attribute from their entry and using the
schema routine to display the attributes they can modify. Naturally I
want to provide the existing data as the default and that is where I
ran into a number of problems.
First of all I discovered that search returns the mobile phone
attribute from the cosine schema as "mobile" but schema returns it as
"mobileTelephoneNumber" (which I was expecting it to consider an
alias). To try to work around that I was going to use
Net::LDAP::Schema::item to grab the name of the attribute (which I
was hoping would be consistent) but then I discovered that name2oid
for telephoneNumber returned two oids (one for the syntax and another
for the attribute). In the syntax case I would suggest that removing
all spaces and lowercasing the value "Telephone Number" is a bad idea
and at least replacing spaces with underscores would be better
(although I haven't looked for other implications of that change).
Do you think that the first problem is a bug and if so can you
suggest a fix. If it's not a bug then any ideas on what I should be
doing?
Thanks,
Mark.
----- End forwarded message -----
|