[Catalyst] LDAP question

Kenneth S Mclane ksmclane at us.ibm.com
Mon May 21 16:12:16 GMT 2012


I'm going to post this up here to avoid those quoting issues. I'm x'ing 
out my password for obvious reasons.

Net::LDAP=HASH(0x4585ad0) sending:

30 28 02 01 01 60 23 02 01 03 04 13 6B 73 6D 63 0(...`#.....ksmc
6C 61 6E 65 40 75 73 2E 69 62 6D 2E 63 6F 6D 80 lane at us.ibm.com.
09 46 6F 7A 7A 79 39 37 36 65 __ __ __ __ __ __ .xxxxxxxxx

Net::LDAP=HASH(0x4585ad0) received:

30 84 00 00 00 10 02 01 01 61 84 00 00 00 07 0A 0........a......
01 31 04 00 04 00 __ __ __ __ __ __ __ __ __ __ .1....

[info] *** Request 1 (0.000/s) [12394] [Mon May 21 11:07:26 2012] ***
[debug] Path is "login"
[debug] "POST" request for "login" from "192.168.159.2"
[debug] Body Parameters are:
.-------------------------------------+--------------------------------------.
| Parameter                           | Value   |
+-------------------------------------+--------------------------------------+
| password                            | xxxxxxxx  |
| username                            | ksmclane at us.ibm.com   |
'-------------------------------------+--------------------------------------'
[error] Error on Initial Bind: Invalid credentials
[debug] Response Code: 500; Content-Type: text/html; charset=utf-8; 
Content-Length: 20384
[info] Request took 0.186364s (5.366/s)

Needless to say these are valid credentials.



From:
Tomas Doran <bobtfish at bobtfish.net>
To:
The elegant MVC web framework <catalyst at lists.scsys.co.uk>
Date:
05/21/2012 11:01 AM
Subject:
Re: [Catalyst] LDAP question



Your quoting and HTML mail settings are really broken!

You are not quoting anyone else's email, but just changing it's font - 
which means that anyone using a text mail client without fonts can't see 
the quoting..

On 21 May 2012, at 16:18, Kenneth S Mclane wrote:

> You can turn on LDAP debugging and get a print out of what is actually 
going to <=> from the LDAP server, which would help determine which query 
specifically is failing.. 
> 
> I cannot find anything out there on turning on LDAP debugging? 
Strangely, if I out my username and password in the bind fields it gives 
me Invalid credentials. I authenticate through this ldap server many times 
a day, so I'm almost sure it's some setting that is wrong. 

I'm sure some setting is wrong too!

But it's going to be hard to guess which one without knowing what error 
code gets returned, to what query!

The debugging bit isn't as obvious as I remember it being, sorry about 
that:

https://metacpan.org/module/Catalyst::Authentication::Store::LDAP#ldap_server_options


so you want to set: ldap_server_options => { debug => 3 } # Incoming and 
outgoing packets

Cheers
t0m


_______________________________________________
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120521/ec2e10c6/attachment.htm


More information about the Catalyst mailing list