• 0

help with coldfusion


Question

i've setup a fedora directory server, it's working now, no problems.

now i'm trying to create a page in coldfusion that contains a cfldap query to search for the users listed in the directory, but it's not working.

this is my query:

<cfldap server="10.0.20.2" action="query" name="Getemploye"
start="ou=People,dc=svdir,dc=com"
atributes="*"
scope="subtree"
username="cn=Directory Manager"
password="administratorpassword"
timeout="4000">
<HTML>
<HEAD>
    <TITLE>LDAP Directory Example</TITLE>
</HEAD>

<BODY>

<H3>US Organizations beginning with 
    the letter 'A' thru 'E':</H3>

<CFFORM NAME="GridForm" ACTION="LdaTest2.cfm">

    <CFGRID NAME="grid_one"
        QUERY="GetEmployee"
        HEIGHT=250
        WIDTH=620
        HSPACE=20
        VSPACE="6">

		<CFGRIDCOLUMN NAME="cn"
            HEADER="cn" WIDTH=380>

				<CFGRIDCOLUMN NAME="sn"
           						 HEADER="sn" WIDTH=380>

			<CFGRIDCOLUMN NAME="uid"
           						 HEADER="uid" WIDTH=380>

								 <CFGRIDCOLUMN NAME="givenName"
           						 HEADER="givenName" WIDTH=380>

									   <CFGRIDCOLUMN NAME="mail"
         							   HEADER="mail" WIDTH=100>

     							   <CFGRIDCOLUMN NAME="telephoneNumber"
          										  HEADER="Phone ##" WIDTH=150>

												  <CFGRIDCOLUMN NAME="memberUid"
         							   HEADER="memberUid" WIDTH=100>

    </CFGRID>

</CFFORM>

</BODY>
</HTML>

while executing this i'm getting the error:

An error has occured while trying to execute query: [LDAP:error code 32 - No such object].

one or more of the required attributes may be missing or incorrect or you do not have permissions to execute this operation on the server.

can anyone give some help with this issue?

help would be appreciated

thanks in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

i've done it, had to change the cfldap query in order to return the users, groups and such.

now i'm facing another question, how do i create a group in ldap using cfldap?is that even possible?

and another thing, how can i add or change the password from null to something else, this because the users that are created using coldfusion don't have a password.

help would be appreciated

thanks in advance

Link to comment
Share on other sites

  • 0

it did, it helped.

now i've been struggling with the other issue, adding a password to the users, any ideas?

Link to comment
Share on other sites

  • 0

user management is almost done, i can now create, delete, modify data of users, and i can create and delete groups.

but now i'm facing another problem, adding users to groups, when i try this query in coldfusion

cfldap action="modify" dn="cn=testesmod,ou=Groups,dc=com"
            attributes="member=uid=tusertest,ou=People,dc=com"
            separator=";" modifytype="add"
            server="serverip
            username="cn=Directory Manager"
            password="password" />

i get this error

An error has occured while trying to execute modify :[LDAP: error code 32 - No Such Object].

any ideas?

thanks in advance

Link to comment
Share on other sites

  • 0

while digging around the directory and googling alot, i noticed that the attribute member does not exist, only memberOf, so i enabled the plugin, restarted the directory server, changed the query in coldfusion to:

cfldap action="modify" dn="cn=testesmod,ou=Groups,dc=com"
            attributes="memberOf=uid=tusertest,ou=People,dc=com"
            separator=";" modifytype="add"
            server="serverip"
            username="cn=Directory Manager"
            password="password" />

ran the coldfusion page and bam error, this time it's this one:

An error has occured while trying to execute modify :[LDAP: error code 65 - attribute "memberOf" not allowed ].

any ideas?

help would be appreciated

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.