Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Lukas However
OpenLDAP
Commits
14418bdf
Commit
14418bdf
authored
24 years ago
by
Bastiaan Bakker
Browse files
Options
Downloads
Patches
Plain Diff
Avoid C++ keyword 'new' in header files.
parent
873c36f7
No related branches found
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
servers/slapd/passwd.c
+12
-12
12 additions, 12 deletions
servers/slapd/passwd.c
servers/slapd/proto-slap.h
+2
-2
2 additions, 2 deletions
servers/slapd/proto-slap.h
with
14 additions
and
14 deletions
servers/slapd/passwd.c
+
12
−
12
View file @
14418bdf
...
...
@@ -68,8 +68,8 @@ int passwd_extop(
int
slap_passwd_parse
(
struct
berval
*
reqdata
,
struct
berval
**
id
,
struct
berval
**
old
,
struct
berval
**
new
,
struct
berval
**
old
pass
,
struct
berval
**
new
pass
,
char
**
text
)
{
int
rc
=
LDAP_SUCCESS
;
...
...
@@ -117,7 +117,7 @@ int slap_passwd_parse( struct berval *reqdata,
}
if
(
tag
==
LDAP_TAG_EXOP_X_MODIFY_PASSWD_OLD
)
{
if
(
old
==
NULL
)
{
if
(
old
pass
==
NULL
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"slap_passwd_parse: OLD not allowed.
\n
"
,
0
,
0
,
0
);
*
text
=
"use bind to verify old password"
;
...
...
@@ -125,7 +125,7 @@ int slap_passwd_parse( struct berval *reqdata,
goto
done
;
}
tag
=
ber_scanf
(
ber
,
"O"
,
old
);
tag
=
ber_scanf
(
ber
,
"O"
,
old
pass
);
if
(
tag
==
LBER_ERROR
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"slap_passwd_parse: ID parse failed.
\n
"
,
...
...
@@ -137,7 +137,7 @@ int slap_passwd_parse( struct berval *reqdata,
}
if
(
tag
==
LDAP_TAG_EXOP_X_MODIFY_PASSWD_NEW
)
{
if
(
new
==
NULL
)
{
if
(
new
pass
==
NULL
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"slap_passwd_parse: NEW not allowed.
\n
"
,
0
,
0
,
0
);
*
text
=
"user specified passwords disallowed"
;
...
...
@@ -145,7 +145,7 @@ int slap_passwd_parse( struct berval *reqdata,
goto
done
;
}
tag
=
ber_scanf
(
ber
,
"O"
,
new
);
tag
=
ber_scanf
(
ber
,
"O"
,
new
pass
);
if
(
tag
==
LBER_ERROR
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"slap_passwd_parse: OLD parse failed.
\n
"
,
...
...
@@ -173,14 +173,14 @@ done:
*
id
=
NULL
;
}
if
(
old
!=
NULL
)
{
ber_bvfree
(
*
old
);
*
old
=
NULL
;
if
(
old
pass
!=
NULL
)
{
ber_bvfree
(
*
old
pass
);
*
old
pass
=
NULL
;
}
if
(
new
!=
NULL
)
{
ber_bvfree
(
*
new
);
*
new
=
NULL
;
if
(
new
pass
!=
NULL
)
{
ber_bvfree
(
*
new
pass
);
*
new
pass
=
NULL
;
}
}
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/proto-slap.h
+
2
−
2
View file @
14418bdf
...
...
@@ -698,8 +698,8 @@ LIBSLAPD_F (struct berval *) slap_passwd_return(
LIBSLAPD_F
(
int
)
slap_passwd_parse
(
struct
berval
*
reqdata
,
struct
berval
**
id
,
struct
berval
**
old
,
struct
berval
**
new
,
struct
berval
**
old
pass
,
struct
berval
**
new
pass
,
char
**
text
);
/*
...
...
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