# # port where authd will listen # port 6666 # # max thread number / ODBC connections # hint: with a good ODBC driver, 200 queries only take 4 threads # threads 100 # # DSN, please read iODBC documentation # you can list more dsn, comma separated, they will be considered as fallbacks # dsn my_dsn,my_backupdsn # # DB user ( optional ) # dbuid db_user # # DB password ( optional ) # dbpwd db_password # # Client / server charset ( optional ) # server_encoding UCS-2 client_encoding UTF-8 # # max SQL server response time # timeout 10 # # how many tries to connect to DB before exiting # tries 2 # # access list for console # comma separated IP pools # acl 127.0.0,192.168.0,192.168.1 # # console passwd # admin changeme # # LDAP objectclasses # objectclass: top objectclass: person # # suffix <-> module mapping, aka alias ( optional ) # pop3 posixaccount imap posixaccount # # LDAP <-> SQL mappings # # on th left side, LDAP attributes names # on the righ side, corresponding SQL names on your own tables # uid login homeDirectory homepath userPassword passwd cn lastName sn firstName mail Email # # query / service # # the 1st field correspond to the "ou" base the LDAP query transmitted # OR to a module you wrote to answer this specific ou. # the 2d field is the SQL query itself, note that '%s' will be replaced by # the filter used in the LDAP query. # query_generic select login, passwd from Login where login = '%s' query_imap select login, passwd, rtrim(homepath)+'/'+login+'/' as path from Login where login = '%s' # # REQUIRED: this query is used to perform a health check # tune it so it take very little time # query_init select something from sometable where something='false'