Guest User

Untitled

a guest
Oct 27th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cftry>
  2.     <cfset caller.request.ldapAuth=1 >
  3.     <cfldap server  = "ldap.address.com"
  4.         port        = "port"
  5.         username    = "uid=#attributes.id#,ou=People,dc=somenamespace,dc=com"
  6.         password    = "#attributes.password#"
  7.         action  = "query"
  8.           name      = "ldapResults"
  9.         start   = "uid=#attributes.id#,ou=PEOPLE,dc=SOMENAMESPACE,dc=COM"
  10.         secure  = "CFSSL_BASIC"
  11.         scope       = "base"
  12.         attributes  = "*">
  13.     <cfcatch type="Any">
  14.         <cfset caller.request.ldapAuth=0 >
  15.     </cfcatch>
  16. </cftry>
Add Comment
Please, Sign In to add comment