Koozali.org: home of the SME Server

LDAP issue: Can't locate Convert/ASN1.pm in @INC

patrick

LDAP issue: Can't locate Convert/ASN1.pm in @INC
« on: August 05, 2004, 05:04:42 AM »
Hi all,

I noticed recently that when I added a user to our smeserver that the LDAP directory was not being updated with their details.

After some looking around I noticed that when I restarted ldap I got the following in my messages log:

Aug  5 10:59:41 staff slapd[12120]: slapd stopped.
Aug  5 10:59:41 staff ldap: slapd shutdown succeeded
Aug  5 10:59:41 staff slapd[14603]: daemon: socket() failed errno=97 (Address family not supported by protocol)
Aug  5 10:59:41 staff slapd[14611]: slapd starting
Aug  5 10:59:41 staff ldap: slapd startup succeeded

So looking a bit further I troubleshooted it down to when the command:

/etc/e-smith/events/ldap-update/S80ldap-update

is called it is returning the following in messages:

Aug  5 11:02:21 staff e-smith[14990]: Running event handler: /etc/e-smith/events/ldap-update/S80ldap-update
Aug  5 11:02:21 staff e-smith[14990]: Can't locate Convert/ASN1.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.6.0/Net/LDAP.pm line 11.
Aug  5 11:02:21 staff e-smith[14990]: BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/Net/LDAP.pm line 11.
Aug  5 11:02:21 staff e-smith[14990]: Compilation failed in require at /etc/e-smith/events/ldap-update/S80ldap-update line 32.
Aug  5 11:02:21 staff e-smith[14990]: BEGIN failed--compilation aborted at /etc/e-smith/events/ldap-update/S80ldap-update line 32.

Aug  5 11:02:21 staff e-smith[14990]: S80ldap-update=action|Event|ldap-update|Action|S80ldap-update|Start|1091674941 496341|End|1091674941 633735|Elapsed|0.137394|Status|512
Aug  5 11:02:21 staff e-smith[14990]: Running event handler: /etc/e-smith/events/ldap-update/S90adjust-masq
Aug  5 11:02:22 staff e-smith[14990]: S90adjust-masq=action|Event|ldap-update|Action|S90adjust-masq|Start|1091674941 633890|End|1091674942 197901|Elapsed|0.564011
Aug  5 11:02:22 staff e-smith[14990]: Running event handler: /etc/e-smith/events/ldap-update/S95imap-pem-cert
Aug  5 11:02:22 staff e-smith[14990]: S95imap-pem-cert=action|Event|ldap-update|Action|S95imap-pem-cert|Start|1091674942 198076|End|1091674942 322630|Elapsed|0.124554


I am running 6.01 with minimal contribs.

doing a search of perl modules installed I cant see the ANS1.pm either.

Can anyone with more experience than me help with this?

cheers
Patrick

patrick

LDAP issue: Can't locate Convert/ASN1.pm in @INC
« Reply #1 on: August 09, 2004, 03:44:25 AM »
More information.

I "upgraded" to 6.0-01 (what it was, just did an upgrade in place to try to flush out any inconsistancies with the default install) which didnt seem to fix the issue.

Googling for it has said stuff about installing relevent modules, which I am a little hessitant to do due to this being a live server with bucketloads of users.

I am in the process of removing all contribs one by one in order of their install to make sure they are not the culprit (though the system has been running forever with these contribs) and will once again update you all to the issue.

Patrick