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

Re: can overlay be loaded dynamicly ?





> 
> 
> --On Thursday, February 16, 2006 9:46 AM +0800 William 
> <zzw_happy@yahoo.com.cn> wrote:
> 
>> Hi:
>>     I am wondering if an overlay can be loaded dynamicly . for example:
>> add an overlay via config database at runtime ??     thanks.
> 
> If the overlay supports it, it can be loaded via cn=config.  Most of them 
> don't.

thanks, I am interested in syncprov and chain, can they be loaded by config ?
I tried to add syncprov, but slapd crashed.

ldif:
dn: olcOverlay={0}syncprov,olcDatabase={1}bdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov

slapd:
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 27 contents:
ber_get_next
ber_get_next on fd 12 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <cn=config>
<<< dnPrettyNormal: <cn=config>, <cn=config>
do_bind: version=3 dn="cn=config" method=128
do_bind: v3 bind: "cn=config" to "cn=config"
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 12
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 144 contents:
ber_get_next
ber_get_next on fd 12 failed errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({m) ber:
>>> dnPrettyNormal: <olcOverlay={0}syncprov,olcDatabase={1}bdb,cn=config>
<<< dnPrettyNormal: <olcOverlay={0}syncprov,olcDatabase={1}bdb,cn=config>, <olcOverlay={0}syncprov,olcDatabase={1}bdb,cn=config>
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt (}) ber:
bdb_dn2entry("dc=my-domain,dc=com")
=> bdb_dn2id("dc=my-domain,dc=com")
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989)
send_ldap_result: conn=0 op=1 p=3
send_ldap_response: msgid=2 tag=105 err=0
slap_sl_malloc of 32 bytes failed, using ch_malloc
slap_sl_malloc of 4064 bytes failed, using ch_malloc
slap_sl_malloc of 32 bytes failed, using ch_malloc
ber_flush: 14 bytes to sd 12
Segmentation fault

I am using OpenLdap 2.3.19






> 
> --Quanah
> 
> 
> --
> Quanah Gibson-Mount
> Principal Software Developer
> ITS/Shared Application Services
> Stanford University
> GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.htmlÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿá¶Úÿÿ÷;'þf¢?ü???ÿ