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

Re: (ITS#7905) rwm_attrs: Assertion failed



--Apple-Mail=_C218ED3F-A76E-4570-8833-063C70827424
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Hello,

you could reproduce it on a Single instance with the following ldif =
file:

ldapadd -h localhost -D "cn=3Dldapadmin,ou=3Dconf,dc=3Dexample,dc=3Dde" =
-w 'test' -f ldif.ldif
<ldif.ldif>
dn: dc=3Dexample,dc=3Dde
dc: example
objectClass: top
objectClass: organization
objectClass: dcObject
o: EXAMPLE

dn: ou=3DPeople,dc=3Dexample,dc=3Dde
objectClass: top
objectClass: organizationalUnit
ou: People

dn: uid=3Dandi,ou=3DPeople,dc=3Dexample,dc=3Dde
uid: andi
uidNumber: 12
gidNumber: 20
homeDirectory: /home/andi
loginShell: /bin/tcsh
objectClass: exPassword
objectClass: top
objectClass: posixAccount
objectClass: person
sn: Schoe
cn: Andreas Schoe
gfzNisPassword: {CRYPT}i.hBxh9rngIPE
<ldif>

schema for Attribute:
{0}( 1.3.6.1.4.1.25398.511 NAME 'nisPassword' DESC 'Password for NIS' =
EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 =
X-ORIGIN 'user defined' )
{0}( 1.3.6.1.4.1.25398.500 NAME 'exPassword' DESC 'additional attributes =
for accounts' SUP top AUXILIARY MAY ( nisPassword  ) X-ORIGIN 'user =
defined=91 )

rwm config:
olcRwmMap: {0}attribute gfzNisPassword userPassword

ldapsearch -h rzc37 -D "uid=3Dandi,ou=3DPeople,dc=3Dexample,dc=3Dde" -w =
'te' -b "dc=3Dexample,dc=3Dde" -x -LLL '(uid=3Dandi)'=20
Still the same Error: slapd: rwm.c:1286: rwm_attrs: Assertion =
`(*ap)->a_nvals =3D=3D (*ap)->a_vals' failed.

that worked:
ldapsearch -h localhost -D "uid=3Dandi,ou=3DPeople,dc=3Dexample,dc=3Dde" =
-w 'te' -b "dc=3Dexample,dc=3Dde" -x -LLL '(uid=3Dandi)' cn

best regards
andreas

Am 24.07.2014 um 21:35 schrieb andreas.schoe@gfz-potsdam.de:

> Full_Name: Andreas Schoe
> Version: 2.4.39
> OS: linux/gentoo
> URL:=20
> Submission from: (NULL) (139.17.31.83)
>=20
>=20
> First I want to use a proxy to authenticate against another password =
attribute
> but with a proxy I can not "map" the userPassword Attirbute for bind =
operation.
> For search operations it worked. I recognized, that write operations =
can rewrite
> the userpassword attribute. I setup two ldap servers one Master and =
one Slave.
> On the Slave I use first refreshOnly and than refreshAndPersists. The =
issue are
> still the same for Syncrepl as refreshOnly and refreshAndPersists. On =
the Slave
> I also use the RWM Overlay to override the userPassword attribute.=20
>=20
> example for syncrepl:
> {0}rid=3D001 provider=3Dldaps://ldap.example.de/ tls_reqcert=3Dnever =
binddn=3D""
> bindmethod=3Dsimple credentials=3D searchbase=3D=84dc=3Dexample,dc=3Dde"=

> filter=3D"(|(ou=3DPeople)(uid=3Dandi))" =
attrs=3D=84sn,cn,mail,uid,nisPassword,+"
> schemachecking=3Doff type=3DrefreshOnly interval=3D00:00:01:00 =
retry=3D"1 1 100 +"
> timeout=3D1
>=20
> rwm config:
> {0}attribute nisPassword userPassword
>=20
> That works fine, I can bind against the Slave with the nisPassword =
from the
> Master, but when I try a ldapsearch with requesting all attributes the =
server
> crashes. Same with "ldapsearch (uid=3Dandi) userpassword nispassword"
> "ldapsearch (uid=3Dandi) cn sn" worked
>=20
> After crashing the server restarts when nisPassword on Master isn=B4t =
changed.
> After changing nisPassword on the Master the Server won=B4t start.
>=20
> The Error is:
> slapd: rwm.c:1286: rwm_attrs: Assertion `(*ap)->a_nvals =3D=3D =
(*ap)->a_vals'
> failed.
>=20
> tried with hdb and bdb backend and schemacking=3Don, every time the =
same Error
>=20
> try the same with other attributes
> syncrepl:attrs=3D=84sn,mail,uid,nisPassword,+"
> rwm config
> {0}attribute sn cn
>=20
> "ldapsearch (uid=3Dandi) sn" worked
>=20


--Apple-Mail=_C218ED3F-A76E-4570-8833-063C70827424
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIOpzCCBCEw
ggMJoAMCAQICAgDHMA0GCSqGSIb3DQEBBQUAMHExCzAJBgNVBAYTAkRFMRwwGgYDVQQKExNEZXV0
c2NoZSBUZWxla29tIEFHMR8wHQYDVQQLExZULVRlbGVTZWMgVHJ1c3QgQ2VudGVyMSMwIQYDVQQD
ExpEZXV0c2NoZSBUZWxla29tIFJvb3QgQ0EgMjAeFw0wNjEyMTkxMDI5MDBaFw0xOTA2MzAyMzU5
MDBaMFoxCzAJBgNVBAYTAkRFMRMwEQYDVQQKEwpERk4tVmVyZWluMRAwDgYDVQQLEwdERk4tUEtJ
MSQwIgYDVQQDExtERk4tVmVyZWluIFBDQSBHbG9iYWwgLSBHMDEwggEiMA0GCSqGSIb3DQEBAQUA
A4IBDwAwggEKAoIBAQDpm8NnhfkNrvWNVMOWUDU9YuluTO2U1wBblSJ01CDrNI/W7MAxBAuZgeKm
FNJSoCgjhIt0iQReW+DieMF4yxbLKDU5ey2QRdDtoAB6fL9KDhsAw4bpXCsxEXsM84IkQ4wcOItq
aACa7txPeKvSxhObdq3u3ibo7wGvdA/BCaL2a869080UME/15eOkyGKbghoDJzANAmVgTe3RCSMq
ljVYJ9N2xnG2kB3E7f81hn1vM7PbD8URwoqDoZRdQWvY0hD1TP3KUazZve+Sg7va64sWVlZDz+HV
Ez2mHycwzUlU28kTNJpxdcVs6qcLmPkhnSevPqM5OUhqjK3JmfvDEvK9AgMBAAGjgdkwgdYwcAYD
VR0fBGkwZzBloGOgYYZfaHR0cDovL3BraS50ZWxlc2VjLmRlL2NnaS1iaW4vc2VydmljZS9hZl9E
b3dubG9hZEFSTC5jcmw/LWNybF9mb3JtYXQ9WF81MDkmLWlzc3Vlcj1EVF9ST09U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