KxSystems / ldap

Kdb+ integration with LDAP
https://code.kx.com/q
Apache License 2.0
5 stars 5 forks source link

Search/bind default dictionary functionality. Closes #119 #121

Closed cmccarthy1 closed 4 years ago

cmccarthy1 commented 4 years ago

Both the functions .ldap.search and .ldap.bind have been modified to take a dictionary as input in place of parameters which have 'natural' defaults

.ldap.search now takes 4 parameters

  1. sess the integer representing a session created with .ldap.init
  2. scope the integer representing the scope of how a search should take place
  3. filter the string representing how to filter the search process
  4. customDict a dictionary where a user can overwrite the default operation of the 'old' parameters `baseDn`attr`attrsOnly`timeLimit`sizeLimit

.ldap.search now takes 2 parameters

  1. sess the integer representing a session created with .ldap.init
  2. customDict a dictionary where a user can overwrite the default operation of the 'old' parameters `dn`cred`mech

This addition closes #119