lkplatin.blogg.se

Ldap query user name
Ldap query user name













"`r`n"ĮDIT: Update code to for multiple matches.ĮDIT2: I figured out what was wrong with my ldap syntax and fixed it. oConn)ĬOM_Invoke(oComm, "Properties", "SearchScope", "2")ĬOM_Invoke(oComm, "Properties", "Page Size", "500")ĪdoExecute := COM_Invoke(oComm, "Execute")ĮxFields := COM_Invoke(adoExecute, "Fields")ĮxField := COM_Invoke(exFields, "Item", "cn") OComm := COM_CreateObject("ADODB.Command")ĬOM_Invoke(oComm, "ActiveConnection", "+". OConn := COM_CreateObject("ADODB.Connection") Query := " (&(objectclass=user)(objectcategory=person)(&(sn=" lastName ")(givenName=" firstName "))) distinguishedname,cn,employeeid,mail,givenname,sn,middlename,samaccountname,displayname,department,division,bhnadpmanagerid,manager subtree" Is this pretty accurate code wise? I want to make sure I'm spot on before I mark this solved. Create a Snapshot Text Connect field named 'Manager DN', linked to your LDAP Datasource, which will retrieve the content of LDAP 'manager' attribute of your user. How to Step 1 : Get user's manager attribute value in a Connect field. I had to change the query statement though to sql.the other way I had it would give me Commandtext errors. Have a Connect Datasource configured to your LDAP.

ldap query user name

Here's what I came up with.and it got me the results. Changed my code and think i now have this.Im unsure how to proceed to check usernames in LDAP. I have managed to connect to LDAP by entering a username and password into 2 textboxes and hitting submit. Ok I got something that works, after working through this, I found my first mistake which was a mispelling of the word Command. Hi Guys, im hoping some can help, i am trying to link to LDAP to check to see if a username already exists.















Ldap query user name