Mike,
I'm for sure I don't have an extra
character in de the LDAP directory. But I also figured that it isn't Radiator
but the LDAP modules themselves.
If I print ord(chop($value)) it says 0, and
if I print length($value) is is always 1 more than I had in mind. If I run this
same script on Unix, I don't see this '\0' and also length is correct. So the
problem is in perl-ldap instead. I will mail this to Graham Barr.
- Wilbert
Hi Wilbert,
This is very puzzling to us. We
have not seen it before, and we are unsure what the right way to deal
with it.
Can you tell us exactly what whitespace characters are
trailing your fields, and how you loaded the data in to the LDAP server?
Are you sure that the data in the LDAP server does not have trailing
whitespace?
Thanks for reporting this. I hope we will be able to get
to the bottom of it soon. Cheers.
On Jul 30,
9:03am, Wilbert de Graaf wrote: > Subject: > > > We
have Radiator running on both Linux and NT, and authenticate against
the Microsoft LDAP server, using the AuthbyLDAP clause. With Radiator on
Linux, everything was okay but when we tried it on NT, every
authentication request was rejected. > When I looked into the
logfile, I noticed there was an extra whitespace at the end of every
value. I tried to use AuthbyLDAP2 instead, but the same there. When I
changed AuthLDAP.pm on NT a little bit it worked, but this is not
a general solution. The code was something like: > > #file
"AuthLDAP.pm" > > sub finduser
{ > #... > if
($ent) { >
#... > for (...)
{ >
my @vals = ldap_get_values($self->{ld}, $ent,
$ber); >
chop @vals; >
} > } > } > > The only thing
I added was the "chop @vals;". This is okay on NT, but wrong on
Linux. > > - Wilbert > > > [ Attachment
(text/x-html): ".prt3322Cfcbbb" 3019 bytes >
Character set: iso-8859-1 > Encoded with
"quoted-printable" ] >-- End of excerpt from Wilbert de
Graaf
-- Mike
McCauley
[EMAIL PROTECTED] Open System
Consultants Pty.
Ltd Unix,
Perl, Motif, C++, WWW 24 Bateman St Hampton, VIC 3188
Australia http://www.open.com.au Phone +61 3
9598-0985
Fax +61 3 9598-0955
Radiator: the most portable, flexible
and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP,
NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external,
etc etc on Unix, Win95/8, NT, Rhapsody === Archive at http://www.thesite.com.au/~radiator/ To
unsubscribe, email '[EMAIL PROTECTED]'
with 'unsubscribe radiator' in the body of the
message.
|