sdelements / lets-chat

Self-hosted chat app for small teams
http://sdelements.github.io/lets-chat
MIT License
9.76k stars 1.58k forks source link

Problem on getting LDAP authentication in Let's chat #738

Open garytkw12 opened 7 years ago

garytkw12 commented 7 years ago

I have download and deployed a Bitnami Let's chat Virtual Machine in my company. I also tried to install LDAP Plugin and set up LDAP authentication with windows AD following the URL as below, but failed.

https://github.com/sdelements/lets-chat-ldap

According to the following command history, the lets-chat-ldap should have been installed.

root@ubuntu:/opt/bitnami/apps/letschat/htdocs# npm install passport lets-chat@0.4.8 /opt/bitnami/apps/letschat/htdocs âââ passport@0.3.2

root@ubuntu:/opt/bitnami/apps/letschat/htdocs# npm install mongoose lets-chat@0.4.8 /opt/bitnami/apps/letschat/htdocs âââ mongoose@4.8.4

root@ubuntu:/opt/bitnami/apps/letschat/htdocs# npm install lets-chat-ldap lets-chat@0.4.8 /opt/bitnami/apps/letschat/htdocs âââ lets-chat-ldap@0.5.0

Please find the settings.yml as below.

root@ubuntu:/opt/bitnami/apps/letschat/htdocs# vim settings.yml env: production

development / production

http: enable: true host: 0.0.0.0 port: 5000 https: enable: false port: 5001 key: key.pem cert: certificate.pem files: enable: true provider: local local: dir: uploads rooms: private: true xmpp: enable: false port: 5222 domain: example.com database: uri: mongodb://letschat:79140d4f@localhost/letschat secrets: cookie: secretsauce auth: providers: [ldap] ldap: connect_settings: url: ldap://10.30.210.51:389 bind_options: bindDN: CN=Administrator,CN=Users,DC=domain,DC=com bindCredentials: myPass search: base: "CN=Users,DC=domain,DC=com" opts: scope: one filter: (sAMAccountName={{username}}) field_mappings: uid: sAMAccountName firstName: givenName lastName: sn displayName: givenName email: mail

Do you have any idea? Many thanks!

Cyberwizzard commented 7 years ago

When comparing to my config some things stand out: