LDAP and AD not working in Teampass

I am unable to get it to work in 3.0.0.8.

The issue seems to be that TeamPass assumes that the DN includes the username. In a lot of AD setups, it does not. The DN may be based on the CN.

TeamPass 2 did this right. It used a two-step process: 1) query the directory for the entry associated with the username, then use the DN of that entry to bind. TeamPass 3 has this complicated scheme of assembling the DN from stuff you enter into the settings, which is totally unnecessary. If you can successfully look the user up in the directory, you have their DN. No need to assemble it from parts supplied in the settings page.

The 3.x method also doesn't work with the global catalog, since it asumes the base DN for every account is going to be the same. That's not true in a multi-domain forest.

/r/TeamPass Thread Parent