Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to retrieve string "as is" from an LDAP backend #2302
Unable to retrieve a string exactly as it is stored in an LDAP backend. This has to do with the string rules implemented in Freeradius 3 (quoted strings interpreted with shell rules everywhere).
This issue affects the case where Cleartext-Password needs to be retrieved from an LDAP backend and could be an issue with other backends as well due to the uniform approach for string input in Freeradius.
Seems there is no way to retrieve a string "as is" from an LDAP backend if it contains specific character sequences (escape shell sequences or starting with '0x' for example).
How to reproduce issue
See Tmp-String-0 contents when myClearPassword contains escape sequences. When myClearPassword ends in \ (example test1213\) the following output is produced
you could use the following policy to convert the binary attribute to the original string
However when myClearPassword starts with '0x' (example 0xtest123) we get the following output
If myClearPassword is 0xtest1234
The functionality worked in Freeradius 2 ldap module.