server/test/data/sourcesldap
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 22 Dec 2009 09:38:08 +0100
branchstable
changeset 4177 f0ab2b6d3553
parent 364 226cbb207859
child 4531 530a5997d51b
permissions -rw-r--r--
SqlServer: support single sign on / Windows credential authentication This is done through a new db-extra-arguments section in instance_dir/sources which is passed as a string to the extra_args named argument of lgc.db.get_connection. If this argument is Trusted_Connection, windows authentication is used instead of login/password. This change requires at least revision 5475ec3f6412 of logilab.common which will be included in logilab-common 0.46. debian/control updated to mention this new dependency.

[system]
adapter=native
# database driver (postgres or sqlite)
db-driver=sqlite
# database host
db-host=
# database name
db-name=tmpdb
# database user
db-user=admin
# database password
db-password=gingkow
# database encoding
db-encoding=utf8

[admin]
login = admin
password = gingkow

[ldapuser]
adapter=ldapuser
# ldap host
host=ldap
# base DN to lookup for usres
user-base-dn=ou=People,dc=logilab,dc=fr
# user search scope
user-scope=ONELEVEL
# classes of user
user-classes=top,posixAccount
# attribute used as login on authentication
user-login-attr=uid
# name of a group in which ldap users will be by default
user-default-group=users
# map from ldap user attributes to cubicweb attributes
user-attrs-map=gecos:email,uid:login