adding custom attribute with ldap_xlat

mimir erdem.mimiroglu at
Wed Apr 4 13:28:04 CEST 2012


I am trying to add custom attribute to accounting packet and proxy to them
to different servers
by using ldap_xlat. But, although I query the ldap successfully and see the
correct value in debug logs,
attributes values are wrong, and changed.

What is the cause? Do you have any comment.

debug output:
  [ldap] - ldap_xlat end
[preprocess]    expand:
%{ldap:ldap:///dc=test,dc=com?userid1?sub?msisdn=1234567891} ->
  [ldap] - ldap_xlat
[preprocess]    expand: ldap:///dc=test,dc=com?userid2?sub?msisdn=1234567891
-> ldap:///dc=test,dc=com?userid2?sub?msisdn=1234567891
  [ldap] ldap_get_conn: Checking Id: 0
  [ldap] ldap_get_conn: Got Id: 0
  [ldap] performing search in dc=test,dc=com, with filter msisdn=1234567891
  [ldap] Adding attribute userid2, value: *123454321123454321*
  [ldap] ldap_release_conn: Release Id: 0
  [ldap] - ldap_xlat end
[preprocess]    expand:
%{ldap:ldap:///dc=test,dc=com?userid2?sub?msisdn=1234567891} ->

hints file:
DEFAULT Acct-Status-Type == Start
        userid1 =
        userid2 =

 NAS-Port = 1
        Framed-IP-Address =
        NAS-IP-Address =
        Called-Station-Id = "internet1"
        Service-Type = Framed-User
 *       userid1 = 2976652465
        userid2 = 210562417*
        Proxy-State = 0x3531


View this message in context:
Sent from the FreeRadius - User mailing list archive at

More information about the Freeradius-Users mailing list