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

Re: Undefined attribute type...



OK - finally tracked down the error (and what was causing it) after some
trial and error.
It was my LDIF file all along...
hehe

the ldif file should have been:
---------------------------------------------------------------
dn: cn=huntd2,ou=RedGiant,o=DCU
changetype: modify
add: objectClass
objectClass: MailmanSubscriptionObject

add: MailmanSubscription
MailmanSubscription: mailman-users@list.org
---------------------------------------------------------------

Note the "changetype: modify" line - I had "changetype: add".  
I assumed the changetype was based on what one was doing with the
attribute.  I assumed wrong! The "changetype" reflects what you are doing
to the directory entry.  So if you are modifying the entry, use "modify"
and add the extra attributes or delete them or just plain change them.  If
you want to delete a dn or add a dn, use add or delete I assume.

This really had me pulling my hair out - but thanks to Miguel who got me
looking at the basics things  again - had to be something simple all
along!!

Regards

Donal

Miguel wrote:
> 
> Donal Hunt wrote:
> 
> > Having run slapd in debug mode (slapd -d99) i got the following:
> >
> > ------------------------------------------------------------------------------
> > connection_get(9): got connid=0
> > connection_read(9): checking for input on id=0
> > ber_get_next
> > ldap_read: want=1, got=1
> >   0000:  30                                                 0
> > ldap_read: want=1, got=1
> >   0000:  2e                                                 .
> > ldap_read: want=46, got=46
> >   0000:  02 01 01 60 29 02 01 03  04 1c 63 6e 3d 4d 61 6e
> > ...`).....cn=Man
> >   0010:  61 67 65 72 2c 6f 75 3d  52 65 64 47 69 61 6e 74
> > ager,ou=RedGiant
> >   0020:  2c 6f 3d 44 43 55 80 06  73 65 63 72 65 74         ,o=DCU..secret
> > ber_get_next: tag 0x30 len 46 contents:
> > ber_get_next
> > ldap_read: want=1 error=Resource temporarily unavailable
> > ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
> > do_bind
> > ber_scanf fmt ({iat) ber:
> > ber_scanf fmt (o}) ber:
> > ------------------------------------------------------------------------------
> >
> > You can see that I'm getting a "Resource temporarily unavailable" message.
> > I'm only starting out with LDAP, but this would seem to point to a
> > configuration error... I also see that Miguel is having a similar problem.
> > Miguel - do you get the above message too???
> >
> 
> Yes, i got the same one.
> 
> > I'm running openldap-2.0.7, if that makes any difference to things...
> 
> Me too. By the way, i'm runnit slapd on a RH7.01 machine.
> 
> Regards
> 
> Miguel