BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

AD groups starting with # don't work for Role External Authentication IDs

Open GitAdrianHub opened this issue 7 years ago • 3 comments

Active Directory security groups that start with # (our standard) don't work for mapping AD groups to Roles using either the Role Name or External Authentication IDs. When A user who is a member of that group logs in, their role will not be applied.

Ubuntu 18.04 fresh install and used the supplied Ubuntu install script and supplied ldap config.

GitAdrianHub avatar Oct 24 '19 20:10 GitAdrianHub

Hi @GitAdrianHub, I've had a little play on my side on this although I'm using OpenLDAP instead of AD.

It's a bit awkward since hash is not a valid character on its own and has to be escaped within a DN. While testing I found that the BookStack side of things receives an escaped character code instead of a hash itself.

When setting an "External Authentication ID" on role of \23groupname (So a \23 instead of a #) I found it would then match correctly. Can you give this a go on your side to see if that gets things working?

ssddanbrown avatar Oct 26 '19 12:10 ssddanbrown

That seems to work, thank you!

GitAdrianHub avatar Oct 28 '19 18:10 GitAdrianHub

@GitAdrianHub Awesome! I'll therefore close this off, Hopefully should not be a frequent issue but if it pops up again I'll keep this in mind and potentially add a note to the docs.

Thanks for confirming!

ssddanbrown avatar Oct 28 '19 20:10 ssddanbrown