Skip site navigation (1) Skip section navigation (2)

BUG #3666: Truncated Parameter in LDAP string when spaces contained

From: "Yves" <yves(dot)giambrone(at)cg84(dot)fr>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3666: Truncated Parameter in LDAP string when spaces contained
Date: 2007-10-10 13:45:14
Message-ID: 200710101345.l9ADjEJc026256@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      3666
Logged by:          Yves
Email address:      yves(dot)giambrone(at)cg84(dot)fr
PostgreSQL version: 8.2.5
Operating system:   LInux
Description:        Truncated Parameter in LDAP string when spaces contained
Details: 

Hello,
It is not possible to include spaces for ldap parameter (lpad://...) because
of a scanf that truncates it as the first space is dicovered.
I have upgraded the file auth.c with 	

for (i=0;i<127;i++)
	{
	if (basedn[i]=='&') basedn[i]=' ';
	if (prefix[i]=='&') prefix[i]=' ';
	if (suffix[i]=='&') suffix[i]=' ';
	}

in the CheckLDAPAuth(Port *port) routine, and replace each space by '&' in
the pg_hba.conf.
This is not nice but it runs.

pgsql-bugs by date

Next:From: Tom LaneDate: 2007-10-10 13:58:00
Subject: Re: BUG #3665: INSERT is not allowed in a non-volatile function
Previous:From: EvgeniDate: 2007-10-10 13:01:52
Subject: BUG #3665: INSERT is not allowed in a non-volatile function

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group