adding custom attribute with ldap_xlat
mimir
erdem.mimiroglu at alcatel-lucent.com
Wed Apr 4 13:28:04 CEST 2012
Hello,
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} ->
1234567890987654321
[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} ->
*123454321123454321*
hints file:
----------------
DEFAULT Acct-Status-Type == Start
userid1 =
"%{ldap:ldap:///dc=test,dc=com?userid1?sub?msisdn=1234567891}",
userid2 =
"%{ldap:ldap:///dc=test,dc=com?userid2?sub?msisdn=1234567891}"
NAS-Port = 1
Framed-IP-Address = 2.2.2.17
NAS-IP-Address = 135.243.90.68
Called-Station-Id = "internet1"
Service-Type = Framed-User
* userid1 = 2976652465
userid2 = 210562417*
Proxy-State = 0x3531
Thanks.
--
View this message in context: http://freeradius.1045715.n5.nabble.com/adding-custom-attribute-with-ldap-xlat-tp5617491p5617491.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
More information about the Freeradius-Users
mailing list