I have had the exact same problem. My Active Directory is inside the firewall
and accesable with .net code from my dev machine. Here is the salient C#.
public static bool UserExists(string UserName)
{
//create an instance of the DirectoryEntry
DirectoryEntry de = GetDirectoryObject("/" + GetLDAPDomain());
//create instance fo the direcory searcher
DirectorySearcher deSearch = new DirectorySearcher(de);
//set the search filter
deSearch.SearchRoot =de;
deSearch.Filter = "(&(objectClass=user)(objectCategory=Person))";
//find the first instance
SearchResultCollection results= deSearch.FindAll();
System.Diagnostics.Debug.WriteLine(results.Count.ToString()); // 54
foreach (SearchResult Result in results)
{
string ss = Result.Properties["samaccountname"][0].ToString();
if (ss.IndexOf(UserName) >= 0)
return true;
}
return false;
}
I try the same settings in the CFLDAP tag and I get the
<cfldap action="QUERY"
name="GetUserInfo"
attributes="givenName,sn,cn,name,dn"
start="DC=codagenomics,DC=net"
scope="subtree"
filter="(&(objectClass=user)(objectCategory=Person))"
server="xxx.xxx.xxx.xxx"
username="nstein"
password="password"
>
<cfdump expand="yes" var="GetUserInfo" />
Authentication failed:[LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334,
comment: AcceptSecurityContext error, data 525, vece ]
In the .net code, the return is a SearchResultCollection type which must be
iterated. I was expecting a recordset from the cf code.
Perhaps this additional information will trigger a memory from someone.
Nick Stein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300962
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4