Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
a3641244
Commit
a3641244
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Update error codes based upon draft-ietf-ldapext-ldap-c-api-01
Remove ldap_get_lderrno().
parent
2d39f617
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ldap.h
+0
-1
0 additions, 1 deletion
include/ldap.h
libraries/libldap/error.c
+25
-15
25 additions, 15 deletions
libraries/libldap/error.c
with
25 additions
and
16 deletions
include/ldap.h
+
0
−
1
View file @
a3641244
...
...
@@ -532,7 +532,6 @@ LDAP_F int ldap_delete_s LDAP_P(( LDAP *ld, char *dn ));
LDAP_F
int
ldap_result2error
LDAP_P
((
LDAP
*
ld
,
LDAPMessage
*
r
,
int
freeit
));
LDAP_F
char
*
ldap_err2string
LDAP_P
((
int
err
));
LDAP_F
void
ldap_perror
LDAP_P
((
LDAP
*
ld
,
char
*
s
));
LDAP_F
int
ldap_get_lderrno
LDAP_P
((
LDAP
*
ld
,
char
**
matched
,
char
**
msg
));
/*
* in modify.c:
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/error.c
+
25
−
15
View file @
a3641244
...
...
@@ -18,24 +18,34 @@ static struct ldaperror ldap_errlist[] = {
{
LDAP_SUCCESS
,
"Success"
},
{
LDAP_OPERATIONS_ERROR
,
"Operations error"
},
{
LDAP_PROTOCOL_ERROR
,
"Protocol error"
},
{
LDAP_TIMELIMIT_EXCEEDED
,
"Timelimit exceeded"
},
{
LDAP_SIZELIMIT_EXCEEDED
,
"Sizelimit exceeded"
},
{
LDAP_TIMELIMIT_EXCEEDED
,
"Time
limit exceeded"
},
{
LDAP_SIZELIMIT_EXCEEDED
,
"Size
limit exceeded"
},
{
LDAP_COMPARE_FALSE
,
"Compare false"
},
{
LDAP_COMPARE_TRUE
,
"Compare true"
},
{
LDAP_STRONG_AUTH_NOT_SUPPORTED
,
"Strong authentication not supported"
},
{
LDAP_STRONG_AUTH_REQUIRED
,
"Strong authentication required"
},
{
LDAP_PARTIAL_RESULTS
,
"Partial results and referral received"
},
{
LDAP_REFERRAL
,
"Referral"
},
{
LDAP_ADMINLIMIT_EXCEEDED
,
"Administrative limit exceeded"
},
{
LDAP_UNAVAILABLE_CRITICIAL_EXTENSION
,
"Criticial extension is unavailable"
},
{
LDAP_CONFIDENTIALITY_REQUIRED
,
"Confidentiality required"
},
{
LDAP_SASL_BIND_IN_PROGRESS
,
"SASL bind in progress"
},
{
LDAP_NO_SUCH_ATTRIBUTE
,
"No such attribute"
},
{
LDAP_UNDEFINED_TYPE
,
"Undefined attribute type"
},
{
LDAP_INAPPROPRIATE_MATCHING
,
"Inappropriate matching"
},
{
LDAP_CONSTRAINT_VIOLATION
,
"Constraint violation"
},
{
LDAP_TYPE_OR_VALUE_EXISTS
,
"Type or value exists"
},
{
LDAP_INVALID_SYNTAX
,
"Invalid syntax"
},
{
LDAP_NO_SUCH_OBJECT
,
"No such object"
},
{
LDAP_ALIAS_PROBLEM
,
"Alias problem"
},
{
LDAP_INVALID_DN_SYNTAX
,
"Invalid DN syntax"
},
{
LDAP_IS_LEAF
,
"Object is a leaf"
},
{
LDAP_ALIAS_DEREF_PROBLEM
,
"Alias dereferencing problem"
},
{
LDAP_INAPPROPRIATE_AUTH
,
"Inappropriate authentication"
},
{
LDAP_INVALID_CREDENTIALS
,
"Invalid credentials"
},
{
LDAP_INSUFFICIENT_ACCESS
,
"Insufficient access"
},
...
...
@@ -43,6 +53,7 @@ static struct ldaperror ldap_errlist[] = {
{
LDAP_UNAVAILABLE
,
"DSA is unavailable"
},
{
LDAP_UNWILLING_TO_PERFORM
,
"DSA is unwilling to perform"
},
{
LDAP_LOOP_DETECT
,
"Loop detected"
},
{
LDAP_NAMING_VIOLATION
,
"Naming violation"
},
{
LDAP_OBJECT_CLASS_VIOLATION
,
"Object class violation"
},
{
LDAP_NOT_ALLOWED_ON_NONLEAF
,
"Operation not allowed on nonleaf"
},
...
...
@@ -50,6 +61,8 @@ static struct ldaperror ldap_errlist[] = {
{
LDAP_ALREADY_EXISTS
,
"Already exists"
},
{
LDAP_NO_OBJECT_CLASS_MODS
,
"Cannot modify object class"
},
{
LDAP_RESULTS_TOO_LARGE
,
"Results too large"
},
{
LDAP_AFFECTS_MULTIPLE_DSAS
,
"Operation affects multiple DSAs"
},
{
LDAP_OTHER
,
"Unknown error"
},
{
LDAP_SERVER_DOWN
,
"Can't contact LDAP server"
},
{
LDAP_LOCAL_ERROR
,
"Local error"
},
...
...
@@ -61,6 +74,15 @@ static struct ldaperror ldap_errlist[] = {
{
LDAP_USER_CANCELLED
,
"User cancelled operation"
},
{
LDAP_PARAM_ERROR
,
"Bad parameter to an ldap routine"
},
{
LDAP_NO_MEMORY
,
"Out of memory"
},
{
LDAP_CONNECT_ERROR
,
"Connect error"
},
{
LDAP_NOT_SUPPORTED
,
"Not Supported"
},
{
LDAP_CONTROL_NOT_FOUND
,
"Control not found"
},
{
LDAP_NO_RESULTS_RETURNED
,
"No results returned"
},
{
LDAP_MORE_RESULTS_TO_RETURN
,
"More results to return"
},
{
LDAP_CLIENT_LOOP
,
"Client Loop"
},
{
LDAP_REFERRAL_LIMIT_EXCEEDED
,
"Referral Limit Exceeded"
},
{
-
1
,
0
}
};
...
...
@@ -79,10 +101,10 @@ ldap_err2string( int err )
return
(
"Unknown error"
);
}
/* depreciated */
void
ldap_perror
(
LDAP
*
ld
,
char
*
s
)
{
#ifdef LDAP_LIBUI
int
i
;
Debug
(
LDAP_DEBUG_TRACE
,
"ldap_perror
\n
"
,
0
,
0
,
0
);
...
...
@@ -109,7 +131,6 @@ ldap_perror( LDAP *ld, char *s )
fprintf
(
stderr
,
"%s: Not an LDAP errno %d
\n
"
,
s
,
ld
->
ld_errno
);
fflush
(
stderr
);
#endif
/* !LDAP_LIBUI */
}
int
...
...
@@ -155,14 +176,3 @@ ldap_result2error( LDAP *ld, LDAPMessage *r, int freeit )
return
(
ld
->
ld_errno
);
}
int
ldap_get_lderrno
(
LDAP
*
ld
,
char
**
matched
,
char
**
msg
)
{
if
(
matched
)
*
matched
=
ld
->
ld_matched
;
if
(
msg
)
*
msg
=
NULL
;
return
(
ld
->
ld_errno
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment