[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: host value in URI don't work with the sasl-regexp (ITS#2669)



Quoting "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>:

> At 11:00 AM 7/30/2003, turbo@bayour.com wrote:
> >Full_Name: Turbo Fredriksson
> >Version: 2.1.22
> >OS: Debian GNU/Linux (sparc)
> >URL: http://www.openldap.org/lists/openldap-software/200307/msg00761.html
> >Submission from: (NULL) (217.215.21.28)
> >
> >
> >The host part in a URI don't work.
> 
> It's not intended to.  The HEAD man page has been updated
> to clarify which components of the URI are expected to be
> absent.

Then don't forget to change the code as well...

>From servers/slapd/saslauthz.c:
----- s n i p -----
/* URI format: ldap://<host>/<base>[?[<attrs>][?[<scope>][?[<filter>]]]] */

static int slap_parseURI( struct berval *uri,
        struct berval *searchbase, int *scope, Filter **filter )
{
----- s n i p -----

Since host is between '<>' this indicate that this (and base)is a
_required_ option, since '[]' is (usually and in this case?)
_optional_ entr{ies,y}...