This wiki is obsolete, see the NorduGrid web pages for up to date information.

Migration from 0.8/Ldap

From NorduGrid
Jump to navigationJump to search

When upgrading from ARC 0.8.3 to ARC 11.05, information system may start misbehaving, with ldapsearch against the site not returning any relevant data and the following appearing in server log:

request done: ld 0x41a25e0 msgid 1
request done: ld 0x41a25e0 msgid 2
ldapadd: Object class violation (65)
        additional info: no structural object class provided
request done: ld 0x41a25e0 msgid 3
ldapadd: Object class violation (65)
        additional info: no structural object class provided
request done: ld 0x41a25e0 msgid 4
ldapadd: No such object (32)
        matched DN: o=Grid
request done: ld 0x41a25e0 msgid 5
ldapadd: No such object (32)
        matched DN: o=Grid
request done: ld 0x41a25e0 msgid 6
ldapadd: No such object (32)
        matched DN: o=Grid
request done: ld 0x41a25e0 msgid 7
ldapadd: No such object (32)
        matched DN: o=Grid
request done: ld 0x41a25e0 msgid 8
ldapadd: No such object (32)
        matched DN: o=Grid
request done: ld 0x41a25e0 msgid 9
ldapadd: No such object (32)
        matched DN: o=Grid
request done: ld 0x41a25e0 msgid 10
ldapadd: No such object (32)
        matched DN: o=Grid


This is cured by running the following script:

#!/bin/bash
PASS=`cat /var/run/bdii/bdii-slapd.conf|grep rootpw |cut -c 17- | head -n 1` 

while ldapsearch -x -H ldap://localhost:2135/ -b mds-vo-name=local,o=grid; do sleep 5; done 1>/dev/null 2>/dev/null

sleep 5

perl /var/tmp/bdii/provider/arc-default.ldif.pl | ldapadd -h localhost -p 2135 -D o=grid -w $PASS -x -c -v  1>/dev/null 2>/dev/null


Migration from 0.6 to 0.8

Some useful notes can be found in migration instructions from ARC 0.6 to ARC 0.8