Hello,

Am trying to do ldap xlats in sql.conf:

sql_user_name= %{serverXldap:ldap:///o=abc?uid?sub?(|(uid=%{User-Name}))}

This works find but it does not give the level of redundancy I wish.  I
have tried to use conditional syntax for the xlats:

sql_user_name = 
%{serverXldap:ldap:///o=abc?uid?sub?(|(uid=%{User-Name})(cn=%{User-Name})):-%{serverYldap:ldap:///o=abc?uid?sub?(|(uid=%{User-Name})(cn=%{User-Name}))}:-%{User-Name}}

This does not work - I end up with usernameusername:-username

Any clues?


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to