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

Re: saslRegexp



The LDAP URL should not contain a hostpart.

At 10:44 AM 2002-08-19, Dieter Kluenter wrote:

>Hi,
>I'm using openldap-2.1.3, cyrus-sasl-2.1.6, krb5-1.2.5. When
>configuring saslRegexp in slapd.conf with following parameters
>
>saslRegexp
>     uid=(.*),cn=GSSAPI,cn=auth
>     ldap://localhost/ou=users,ou=Partner,o=avci,c=de??sub?uid=$1 
>
>I get an error like
>
>line 82 (saslRegexp     uid=(.*),cn=GSSAPI,cn=auth
>ldap://localhost/ou=users,ou=Partner,o=avci,c=de??sub?uid=$1 )
>>>> dnNormalize: <uid=(.*),cn=GSSAPI,cn=auth>
><<< dnNormalize: <uid=(.*),cn=gssapi,cn=auth>
>slap_parseURI: parsing ldap://localhost/ou=users,ou=Partner,o=avci,c=de??sub?uid=$1
>ldap_url_parse_ext(ldap://localhost/ou=users,ou=Partner,o=avci,c=de??sub?uid=$1)
>SASL replace pattern ldap://localhost/ou=users,ou=Partner,o=avci,c=de??sub?uid=$1 could not be parsed.
>slapd shutdown: freeing system resources.
>slapd stopped.
>
>When configuring with
>
>saslRegexp
>   uid=(.*),cn=GSSAPI,cn=auth
>   uid=$1,ou=users,ou=Partner,o=avci,c=de
>
>I get success 
>
>line 86 (saslRegexp    uid=(.*),cn=GSSAPI,cn=auth 
>   uid=$1,ou=users,ou=Partner,o=avci,c=de      )
>>>> dnNormalize: <uid=(.*),cn=GSSAPI,cn=auth>
><<< dnNormalize: <uid=(.*),cn=gssapi,cn=auth>
>slap_parseURI: parsing uid=$1,ou=users,ou=Partner,o=avci,c=de
>ldap_url_parse_ext(uid=$1,ou=users,ou=Partner,o=avci,c=de)
>>>> dnNormalize: <uid=$1,ou=users,ou=Partner,o=avci,c=de>
><<< dnNormalize: <uid=$1,ou=users,ou=partner,o=avci,c=de>
>slapd startup: initiated.
>
>
>Is anybody able to explain, why parsing the first configuration
>pattern wouldn't work but the second example?
>
>-Dieter
>
>- 
>Dieter Kluenter  | Systemberatung
>Tel:040.64861967 | Fax: 040.64891521
>mailto: dkluenter@schevolution.com
>http://www.schevolution.com/tour