ldap2fai crash when trying to export variables
Hello,
when we try to export a profile containing variable ldap2fai crash with the following message
root@fai4:/var/lib/fai/config# ldap2fai -v -H client-fai -d /var/lib/fai/config/ -m 08:00:27:AC:18:27 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Lookup host for MAC '08:00:27:AC:18:27'...
- Host DN: cn=client-fai,ou=workstations,ou=systems,dc=labo,dc=opensides,dc=be
- Base: dc=labo,dc=opensides,dc=be
- Hostname: client-fai
- FAIclass string: CLIENT-FAI :wheezy
- Release: wheezy
- Resolved classlist: DEMO FAIBASE GRUB_PC HD
- FAI classlist: DEFAULT DEMO FAIBASE GRUB_PC HD client-fai LAST Extending FAI classtree with real objects... Dumping config space to '/var/lib/fai/config/'... LDAP search error at line 707: Can't use string ("3") as an ARRAY ref while "strict refs" in use at /usr/share/perl5/Convert/ASN1/_encode.pm line 269. (83)
Can't use an undefined value as an ARRAY reference at /usr/sbin/ldap2fai line 380.
Cheers
(from redmine: issue id 2994, created on 2014-02-10, closed on 2014-02-12)
- Changesets:
- Revision 387d3a7a by Côme Chilliet on 2014-02-11T17:44:47.000Z:
Fixes #2994 ldap2fai crash when trying to export variables
- Revision e3025855 by Côme Chilliet on 2014-02-12T09:55:38.000Z:
Fixes #2994 improves readability
- Revision fd1c6e57 by Côme Chilliet on 2014-02-12T10:06:18.000Z:
Fixes #2994 Added a message when dry run is activated