sebo-b / warp

Workspace Autonomous Reservation Program - a system to help you efficiently manage hybrid (assigned, hot-desks, etc) office space.
MIT License
139 stars 60 forks source link

LDAP configuration #26

Closed Gjacquenot closed 1 year ago

Gjacquenot commented 1 year ago

👋

I would like to setup the LDAP authentification.

I usually have a bind_cn and a password fields to provide but I don't know where to set it in warp configuration.

The bind_cn field looks generally like that: (bind_dn: 'CN=my_Ldap,OU=my_ou,DC=my_domain,DC=com')

Any help would highly be appreciated!

Guillaume

sebo-b commented 1 year ago

Hi,

set up these environment variables as a bare minimum to make LDAP work:

WARP_AUTH_LDAP = "True"
WARP_LDAP_SERVER_URL = "ldap://your_ldap.example.org:389"
WARP_LDAP_USER_TEMPLATE = "CN={login},OU=my_ou,DC=my_domain,DC=com"
WARP_LDAP_STARTTLS = "True"