diff options
author | venaas <venaas> | 2007-01-03 15:10:01 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-01-03 15:10:01 +0000 |
commit | eaee4a19751a8501930c037c5865f88eafb48052 (patch) | |
tree | fae2f15282377cb3a426e96222b4584fa88407f7 /radsecproxy.c | |
parent | c6394d1a23a3aef9a8dca8b38843a461482beb53 (diff) |
radsrv realm routing changes
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@15 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index d794ad0..233412a 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -529,6 +529,7 @@ struct peer *radsrv(struct request *rq, char *buf, struct peer *from) { for (i = 0; i < peer_count; i++) { for (realm = peers[i].realms; *realm; realm++) { /* assume test@domain */ + printf("realmlength %d, usernamelenght %d, usernameattr+5 %s\n", strlen(*realm), usernameattr[RAD_Attr_Length] - 5, usernameattr + 5); if (strlen(*realm) == usernameattr[RAD_Attr_Length] - 5 && !memcmp(usernameattr + 5, *realm, strlen(*realm))) { printf("found matching realm: %s, host %s\n", *realm, peers[i].host); break; |