Modifying multivalue AD entries via LDAP

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. multivalue cookies
      In asp3, you could set a multivalue cookie by doing something like this Response.Cookies("login")("user") = Session('user');...
    5. 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. ...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139