jcpatterson
asked on
LDAP
Hi,
I need to have users authenticate against LDAP. I have the following CFLDAP code and am having problems:
<cfldap
server="10.1.1.41"
action="query"
name="getme"
start="o=kant"
filter="cn=johnpa"
attributes="cn,mail">
I get the following error:
An error has occured while trying to execute query :[LDAP: error code 1 - 00000000: LdapErr: DSID-0C0905FF, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece].
One or more of the required attributes may be missing/incorrect or you do not have permissions to execute this operation on the server .
The error occurred in C:\CFusionMX\wwwroot\form. cfm: line 11
9 :
10 : <cfldap
11 : server="10.1.1.41"
12 : action="query"
13 : name="getme"
This is the IP Address to our AD Server. I've tried the long address kaads.kant.local which is what is in DNS but I get the same error message. Can anyone help?
Thanks.
John
I need to have users authenticate against LDAP. I have the following CFLDAP code and am having problems:
<cfldap
server="10.1.1.41"
action="query"
name="getme"
start="o=kant"
filter="cn=johnpa"
attributes="cn,mail">
I get the following error:
An error has occured while trying to execute query :[LDAP: error code 1 - 00000000: LdapErr: DSID-0C0905FF, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece].
One or more of the required attributes may be missing/incorrect or you do not have permissions to execute this operation on the server .
The error occurred in C:\CFusionMX\wwwroot\form.
9 :
10 : <cfldap
11 : server="10.1.1.41"
12 : action="query"
13 : name="getme"
This is the IP Address to our AD Server. I've tried the long address kaads.kant.local which is what is in DNS but I get the same error message. Can anyone help?
Thanks.
John
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
I rewrote the tag with the following example:
<cfldap
action="query"
name="getme"
server="kaads.kant.local"
port="389"
username="johnpa"
password="fishy"
start="dn=kant"
filter="cn=johnpa"
attributes="cn">
I am gett a new error:
Inappropriate authentication
The error occurred in C:\CFusionMX\wwwroot\form. cfm: line 19
17 : start="dn=kant"
18 : filter="cn=johnpa"
19 : attributes="cn">
20 :
21 : <cfoutput>#cn#</cfoutput>
Your patience is appreciated.
John
I rewrote the tag with the following example:
<cfldap
action="query"
name="getme"
server="kaads.kant.local"
port="389"
username="johnpa"
password="fishy"
start="dn=kant"
filter="cn=johnpa"
attributes="cn">
I am gett a new error:
Inappropriate authentication
The error occurred in C:\CFusionMX\wwwroot\form.
17 : start="dn=kant"
18 : filter="cn=johnpa"
19 : attributes="cn">
20 :
21 : <cfoutput>#cn#</cfoutput>
Your patience is appreciated.
John
ASKER
I was able to get it working myself. I went to Google Groups and there was more information there. Anyway the answer is to make sure the account being used to query LDAP is a member of Account Operators group.
This question is closed.
Thanks.
John
This question is closed.
Thanks.
John
ASKER
ld = ldap_open("kaads", 389);
Established connection to kaads.
Retrieving base DSA information...
Result <0>: (null)
Matched DNs:
Getting 1 entries:
>> Dn:
1> currentTime: 3/28/2005 16:51:22 Eastern Standard Time Eastern Standard Time;
1> subschemaSubentry: CN=Aggregate,CN=Schema,CN=
1> dsServiceName: CN=NTDS Settings,CN=KAADS,CN=Serve
5> namingContexts: DC=kant,DC=local; CN=Configuration,DC=kant,D
1> defaultNamingContext: DC=kant,DC=local;
1> schemaNamingContext: CN=Schema,CN=Configuration
1> configurationNamingContext
1> rootDomainNamingContext: DC=kant,DC=local;