[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
OpenLPDAP client tools exit codes
- To: OpenLDAP Technical <openldap-technical@openldap.org>
- Subject: OpenLPDAP client tools exit codes
- From: Liam Gretton <liam.gretton@leicester.ac.uk>
- Date: Tue, 12 Jul 2011 09:59:56 +0100
- Organization: IT Services, University Of Leicester
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b3pre Thunderbird/3.1.11
Hi,
I've started relying on undocumented exit codes for ldapmodify in places.
These are defined in ldap.h, e.g.:
#define LDAP_CONSTRAINT_VIOLATION 0x13
#define LDAP_TYPE_OR_VALUE_EXISTS 0x14
Presumably these are undocumented for good reason, but in practice can
they be relied on not to change, at least as far as OpenLDAP 2 is
concerned (additional exit codes are obviously not an issue).
--
Liam Gretton liam.gretton@le.ac.uk
HPC Architect http://www.le.ac.uk/its
IT Services Tel: +44 (0)116 2522254
University of Leicester, University Road
Leicestershire LE1 7RH, United Kingdom