Re: Configuration of slapo-rwm with cn=config scheme

2009-01-26 Thread Mathieu MILLET

On Sat, 24 Jan 2009 15:09:00 +0100, Pierangelo Masarati 
wrote:
> [email protected] wrote:
> 
>> 
>> Can anybody help me on how to proceed? My goal is to get the sample
>> configuration from the slapo-rwm man page working which rewrites the
>> bindDN if an email-address is given.
> 
> Please file an ITS for this.  p.
> 

Hi,

Since I have the same problem, I have filled the ITS #5906.

I'm available for any testing.

> Ing. Pierangelo Masarati
> OpenLDAP Core Team
> 
> SysNet s.r.l.
> via Dossi, 8 - 27100 Pavia - ITALIA
> http://www.sys-net.it
> ---
> Office:  +39 02 23998309
> Mobile:  +39 333 4963172
> Fax: +39 0382 476497
> Email:   [email protected]
> ---

Thanks in advance,
Sincerely yours, Mathieu MILLET.

-- 
Mathieu MILLET
mailto:[email protected]



Re: Configuration of slapo-rwm with cn=config scheme

2009-01-26 Thread Pierangelo Masarati

Mathieu MILLET wrote:

On Sat, 24 Jan 2009 15:09:00 +0100, Pierangelo Masarati 
wrote:

[email protected] wrote:


Can anybody help me on how to proceed? My goal is to get the sample
configuration from the slapo-rwm man page working which rewrites the
bindDN if an email-address is given.

Please file an ITS for this.  p.



Hi,

Since I have the same problem, I have filled the ITS #5906.

I'm available for any testing.


This issue *should* be fixed in HEAD.  Please test and report.  I've 
tested it by manually configuring slapo-rwm in slapd.conf, generating 
the in-directory configuration (-F), and restarting slapd using -F only.


I haven't played with configuration modifications using ldapmodify yet.

p.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
---
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Fax: +39 0382 476497
Email:   [email protected]
---



Re: Configuration of slapo-rwm with cn=config scheme

2009-01-24 Thread Pierangelo Masarati

[email protected] wrote:



Can anybody help me on how to proceed? My goal is to get the sample 
configuration from the slapo-rwm man page working which rewrites the bindDN if 
an email-address is given.


Please file an ITS for this.  p.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
---
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Fax: +39 0382 476497
Email:   [email protected]
---



Configuration of slapo-rwm with cn=config scheme

2009-01-13 Thread Master_Proper
Dear all,

I am currently trying to figure out how to configure the slapo-rwm overlay with 
the cn=config scheme. So far I was unable to find any documentation on this. 
The only way I could help myself is by using a "fake" slapd-conf file and 
converting it with slaptest -f fake.slapd.conf -F testconfig.d/
What I managed to do:
1. I created a file with the following content:
$ cat rwm_moduleLoad.ldif 
dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: rwm.so

and loaded it with ldapmodify -D "cn=admin,cn=config" -x -W -f 
rwm_moduleLoad.ldif

2. I tried to do the same with this file:
$ cat rwm_activate.ldif 
dn: olcOverlay=rwm,olcDatabase={1}hdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcRwmConfig
olcOverlay: rwm
olcRwmRewrite: rwm-rewriteEngine "on"
olcRwmRewrite: rwm-rewriteMap "ldap" "attr2dn" "ldap://localhost/o=org?dn?sub";
olcRwmRewrite: rwm-rewriteContext "bindDN"
olcRwmRewrite: rwm-rewriteRule "^mail=[^,]...@[^,]+$" "${attr2dn($0)}" ":@I"
olcRwmTFSupport: no
olcRwmNormalizeMapped: FALSE

When I wanted to add this file with ldapadd -D "cn=admin,cn=config" -x -W -f 
rwm_activate.ldif the following error message was returned:
adding new entry "olcOverlay=rwm,olcDatabase={1}hdb,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
additional info:  handler exited with 1

Adding a file with only the follwing content suceeded:
$ cat rwm_activate.ldif 
dn: olcOverlay=rwm,olcDatabase={1}hdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcRwmConfig
olcOverlay: rwm

Can anybody help me on how to proceed? My goal is to get the sample 
configuration from the slapo-rwm man page working which rewrites the bindDN if 
an email-address is given.
I am using
@(#) $OpenLDAP: slapd 2.4.11 (Oct 24 2008 23:44:05) $
bui...@palmer:/build/buildd/openldap-2.4.11/debian/build/servers/slapd
- the standard build on Ubuntu 8.10 (Intrepid Ibex).

Thanks in advance for your support!

Best regards,

Proper
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger