Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Shigeru@Linkcom #1
Does ReturnAsBinary of CFLDAP work ??
Does ReturnAsBinary of CFLDAP work ??
I am trying [ReturnAsBinary] for objectGUID on ActiveDirectory.
but it does not work, and just CFLDAP return [objectGUID] as [String]
Please tell me how to use [ReturnAsBinary] or get correctly [objectGUID]
sample is below
<CFLDAP
server = "localhost"
port = "389"
username = "administrator"
password = "adminpassword"
action = "query"
name = "qryGetGUID"
start = "example.com"
scope = "subtree"
attributes = "cn,name,objectGUID"
returnAsBinary = "objectGUID"
filter="cn=acministrator">
Shigeru@Linkcom Guest
-
CFLDAP
Hi, I've never used this tag before and its causing me some problems. (see attached code) Regarding the start attribute what does 'cn' and 'c'... -
CFLDAP 2 Servers
I am looking at a group in Active Directory in it I have added a user that is in another active directory. When I use Microsofts AD tool the user... -
CFLDAP to ASP
Does anyone know how to convert the following CFLDAP code to ASP? I have had no luck. <cfldap action="query" name="testldap"... -
CFLDAP Connection
Hello, QUESTION #1 I've tried to add an entry using cfldap and i kept getting same general error saying below Is there anyway for me to see an... -
CFLDAP Question
I am trying to pull back all users in Active Directory that do not contain a $ sign. I can return ALL users that have a dollar sign by the... -
Shigeru@Linkcom #2
Re: Does ReturnAsBinary of CFLDAP work ??
self replay
It's works!!
Actually I was trying [returnAsBinary = "objectGUID,objectSID"]
like below and did not work
<CFLDAP
server = "localhost"
port = "389"
username = "administrator"
password = "adminpassword"
action = "query"
name = "qryGetGUID"
start = "example.com"
scope = "subtree"
attributes = "cn,name,objectGUID"
returnAsBinary = "objectGUID,objectSID"
filter="cn=acministrator">
and I figured out how to use [returnasbinary]
if there is a column(=attribute) for returnasbinary , it just write [
returnasbinary = "objectGUID" ]
if there are many columns(=attributes) for returnasbinary (more than two),
it must write [ returnasbinary = "objectGUID , objectSID" ]
not [ returnasbinary = "objectGUID,objectSID" ]
not [ returnasbinary = "objectGUID, objectSID" ]
not [ returnasbinary = "objectGUID ,objectSID" ]
it needs a space and a comma and a space like " , " between column name
I don't know why , but it works.
for example
<CFLDAP
server = "localhost"
port = "389"
username = "administrator@example.com"
password = "adminpassword"
action = "query"
name = "qryGetGUID"
start = "example.com"
scope = "subtree"
attributes = "cn,name,objectGUID,objectSID"
returnAsBinary = "objectGUID , objectSID"
filter="cn=acministrator">
<CFSET szTemp = qryGetGUID.objectGUID>
<CFSET szData = BinaryEncode(szTemp,"Hex")>
<CFOUTPUT>objectGUID is #szData#<BR></CFOUTPUT>
<CFSET szTemp = qryGetGUID.objectSID>
<CFSET szData = BinaryEncode(szTemp,"Hex")>
<CFOUTPUT>objectSID is #szData#<BR></CFOUTPUT>
I confirmed this result via ActiveDirectory's ADAM-adsiedit.msc.
Thanks
Shigeru@Linkcom Guest



Reply With Quote

