Ask a Question related to Coldfusion Database Access, Design and Development.
-
ssteve #1
Modifying multivalue AD entries via LDAP
I would like to modify the Distribution Group membership for users and contacts
within my domain via an LDAP enabled CF user form. I am able to modify single
value entries using:
<cfldap action="modify"
server="#LDAP_Server#"
modifytype="replace"
attributes = "mail=ddd@xx.com"
dn="CN=Grant-Admin-News_,CN=Users,dc=orsa-ldap, dc=orsa, dc=uoregon, dc=edu"
username="#LDAP_User#"
password="xxxxxxxx">
but if I change the attributes to member and try to execute the following, it
gives error msg:
<cfldap action="modify"
server="#LDAP_Server#"
modifytype="replace"
attributes = "member=CN=third_\,
user,cn=Users,DC=orsa-ldap,DC=orsa,DC=uoregon,DC=edu"
dn="CN=Grant-Admin-News_,CN=Users,dc=orsa-ldap, dc=orsa, dc=uoregon, dc=edu"
username="#LDAP_User#"
password="xxxxxxxxxxx">
The error msg is: An error has occured while trying to execute modify
:CN=Grant-Admin-News_,CN=Users,dc=orsa-ldap, dc=orsa, dc=uoregon, dc=edu:
[LDAP: error code 34 - 00000057: LdapErr: DSID-0C090A85, comment: Error in
attribute conversion operation, data 0, One or more of the required attributes
may be missing/incorrect or you do not have permissions to execute this
operation on the server.
If I execute the following: <cfldap action="modify"
server="#LDAP_Server#"
modifytype="replace"
attributes = "member="
dn="CN=Grant-Admin-News_,CN=Users,dc=orsa-ldap, dc=orsa, dc=uoregon, dc=edu"
username="#LDAP_User#"
password="xxxxxxxxxxx">
It erases all data from the membership list, so I know it's not read only
field.
I believe the problem is how I'm formatting the attributes statement, but I
can't find any examples to work from.
any ideas?
thanx,
steve shapiro
univesity of oregon
ssteve Guest
-
Modifying the PDF content on the fly from PHP/GNU C++
Hi, We have an existing PDF file - the brochure template. We would like to go through the database and replace the very small portion of the... -
Modifying pages
I have already built my site and have added some extra content to my pages. Each page has a footer with 3 buttons - Right now if I move the header... -
modifying extensions
I'm using Web Photo Album 2.2 and need to find a way to add an option for the navigational elements. Currently, it allows you to choose sequential... -
multivalue cookies
In asp3, you could set a multivalue cookie by doing something like this Response.Cookies("login")("user") = Session('user');... -
Modifying Forms
This doesn't sound too hard, just hide controls for one type and when you select the other hide and make visible the other. ... -
ssteve #2
Re: Modifying multivalue AD entries via LDAP
Never mind, I found the solution: adding a separator tag, so the final cfldap
statement looks like:
<cfldap action="modify"
server="#LDAP_Server#"
modifytype="delete" (or add, replace)
separator="|"
attributes = "member=CN=user\,
user,CN=Users,DC=orsa-ldap,DC=orsa,DC=uoregon,DC=edu"
dn="CN=Grant-Admin-News_,CN=Users,dc=orsa-ldap, dc=orsa, dc=uoregon, dc=edu"
username="#LDAP_User#"
password="xxxxxxxxxx">
ssteve Guest



Reply With Quote

