[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: olcAuthzRegexp and SASL
- To: openldap-technical@openldap.org
- Subject: Re: olcAuthzRegexp and SASL
- From: Brendan Kearney <bpk678@gmail.com>
- Date: Sat, 08 Jun 2013 10:40:04 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :x-mailer:mime-version:content-transfer-encoding; bh=NI6gJWV/qL4knSjAO2tRkkk1SBTeLmqEuJertQhKXlU=; b=Rm4X9Nm8kEc/1C+hNHuH/k/8Zm+Bh58s1KmqaJDmTD9GDjkOFaff+OZqAEEy/6rbby BsBe1LylhYdcU97WA+CvU9e7ZAI9W5Phr3w2XDDAT7uzVfOOnva/VyKKRAIpcKnd0phi Hsr25sboxxwXrOqkfXrpY1ZJXp+jOBvuTIgAcEO/QtvjetWtI8QB6cQQVDbJL8qmQ095 SAFSD++l5KzJpDl6Td93HsNlo9dz83zxSq45NQS5cORxomQaeZXmJ0MtN4ld2idlN9r3 s0YTOn/Joy0VPeYYkmurzV9syOzY53mz/9peUKgPAgZLaDZYXORTstxkh1xWKWx/1VGN v+Qw==
- In-reply-to: <1370702276.2101.16.camel@desktop.bpk2.com>
- References: <1370702276.2101.16.camel@desktop.bpk2.com>
Sent to early, sorry...
I get the error:
ldapmodify: extra lines at end (line 3, entry "cn=config")
i am guessing that i have to escape the embedded space in the line, or
encapsulate the entire line. what is the correct why to delete the line
and re-add it correctly?
On Sat, 2013-06-08 at 10:37 -0400, Brendan Kearney wrote:
> all,
>
> i am working on getting SASL, Kerberos 5, and LDAP working together. i
> buggered an olcAuthzRegexp and need to correct it. i need to remove the
> one in place, and replace it with the corrected version. below is what
> i am trying:
>
> ldapmodify -QY EXTERNAL -H ldapi:///
> dn: cn=config
> changetype: delete
> olcAuthzRegexp: uid=([^,]+),cn=bpk2.com,cn=gssapi,cn=auth uid=
> $1,ou=Users,dc=bpk2,dc=com
> -
> changetype: modify
> add: olcAuthzRegexp
> olcAuthzRegexp: {0}uid=([^,]*),cn=bpk2.com,cn=gssapi,cn=auth
> olcAuthzRegexp: {1}uid=$1,ou=Users,dc=bpk2,dc=com
>
> (note, the first olcAuthzRegexp that is to be deleted should be all on
> one line, and that is why it is wrong. formatting in this message may
> change the way it looks.)
>
> the error i get is:
>
>