Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfscript>
- /*
- TEST LDAP Server Information (read-only access):
- Server: ldap.forumsys.com
- Port: 389
- Bind DN: cn=read-only-admin,dc=example,dc=com
- Bind Password: password
- All user passwords are password.
- You may also bind to individual Users (uid) or the
- two Groups (ou) that include:
- ou=mathematicians,dc=example,dc=com
- riemann
- gauss
- euler
- euclid
- ou=scientists,dc=example,dc=com
- einstein
- newton
- galieleo
- tesla
- */
- doLDAPCall();
- function doLDAPCall(){
- local.server = "ldap.forumsys.com";
- local.port = 389;
- local.dn = "cn=read-only-admin,dc=example,dc=com";
- local.start = "ou=scientists,dc=example,dc=com";
- local.username = "einstein";
- local.password = "password";
- cfldap(
- server = local.server,
- port = local.port,
- dn = local.dn,
- action = "QUERY",
- name = "qLDAPLookup",
- password = local.password,
- start = local.start,
- attributes = "*",
- scope = "subtree",
- filter = "(sAMAccountName=#local.username#)"
- );
- writeDump(qLDAPLookup);
- }
- </cfscript>
Add Comment
Please, Sign In to add comment