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
Jaak Ristioja
OpenLDAP
Commits
4b9fa661
Commit
4b9fa661
authored
23 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
use BVC() macro (changed in BER_BVC) to initialize constant bervals
parent
d01bd44f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/lber_pvt.h
+2
-0
2 additions, 0 deletions
include/lber_pvt.h
servers/slapd/acl.c
+14
-14
14 additions, 14 deletions
servers/slapd/acl.c
servers/slapd/root_dse.c
+6
-7
6 additions, 7 deletions
servers/slapd/root_dse.c
with
22 additions
and
21 deletions
include/lber_pvt.h
+
2
−
0
View file @
4b9fa661
...
...
@@ -86,6 +86,8 @@ ber_pvt_socket_set_nonblock LDAP_P(( ber_socket_t sd, int nb ));
#define ber_bvchr(bv,c) \
memchr( (bv)->bv_val, (c), (bv)->bv_len )
#define BER_BVC(x) { sizeof( (x) ) - 1, (x) }
LDAP_END_DECL
#endif
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/acl.c
+
14
−
14
View file @
4b9fa661
...
...
@@ -24,20 +24,20 @@
* speed up compares
*/
static
struct
berval
aci_bv_entry
=
{
sizeof
(
"entry"
)
-
1
,
"entry"
}
,
aci_bv_br_entry
=
{
sizeof
(
"[entry]"
)
-
1
,
"[entry]"
}
,
aci_bv_br_all
=
{
sizeof
(
"[all]"
)
-
1
,
"[all]"
}
,
aci_bv_access_id
=
{
sizeof
(
"access-id"
)
-
1
,
"access-id"
}
,
aci_bv_anonymous
=
{
sizeof
(
"anonymous"
)
-
1
,
"anonymous"
}
,
aci_bv_users
=
{
sizeof
(
"users"
)
-
1
,
"users"
}
,
aci_bv_self
=
{
sizeof
(
"self"
)
-
1
,
"self"
}
,
aci_bv_dnattr
=
{
sizeof
(
"dnattr"
)
-
1
,
"dnattr"
}
,
aci_bv_group
=
{
sizeof
(
"group"
)
-
1
,
"group"
}
,
aci_bv_role
=
{
sizeof
(
"role"
)
-
1
,
"role"
}
,
aci_bv_set
=
{
sizeof
(
"set"
)
-
1
,
"set"
}
,
aci_bv_set_ref
=
{
sizeof
(
"set-ref"
)
-
1
,
"set-ref"
}
,
aci_bv_grant
=
{
sizeof
(
"grant"
)
-
1
,
"grant"
}
,
aci_bv_deny
=
{
sizeof
(
"deny"
)
-
1
,
"deny"
}
;
aci_bv_entry
=
BER_BVC
(
"entry"
),
aci_bv_br_entry
=
BER_BVC
(
"[entry]"
),
aci_bv_br_all
=
BER_BVC
(
"[all]"
),
aci_bv_access_id
=
BER_BVC
(
"access-id"
),
aci_bv_anonymous
=
BER_BVC
(
"anonymous"
),
aci_bv_users
=
BER_BVC
(
"users"
),
aci_bv_self
=
BER_BVC
(
"self"
)
,
aci_bv_dnattr
=
BER_BVC
(
"dnattr"
),
aci_bv_group
=
BER_BVC
(
"group"
),
aci_bv_role
=
BER_BVC
(
"role"
)
,
aci_bv_set
=
BER_BVC
(
"set"
)
,
aci_bv_set_ref
=
BER_BVC
(
"set-ref"
),
aci_bv_grant
=
BER_BVC
(
"grant"
),
aci_bv_deny
=
BER_BVC
(
"deny"
)
;
static
AccessControl
*
acl_get
(
AccessControl
*
ac
,
int
*
count
,
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/root_dse.c
+
6
−
7
View file @
4b9fa661
...
...
@@ -17,15 +17,14 @@
#include
"slap.h"
#include
<ldif.h>
#define BVC(x) {sizeof(x)-1, x}
#include
"lber_pvt.h"
static
struct
berval
supportedFeatures
[]
=
{
BVC
(
"1.3.6.1.4.1.4203.1.5.1"
),
/* all Operational Attributes ("+") */
BVC
(
"1.3.6.1.4.1.4203.1.5.2"
),
/* OCs in Attributes List */
BVC
(
"1.3.6.1.4.1.4203.1.5.3"
),
/* (&) and (|) search filters */
BVC
(
"1.3.6.1.4.1.4203.1.5.4"
),
/* Language Tag Options */
BVC
(
"1.3.6.1.4.1.4203.1.5.5"
),
/* Language Range Options */
BER_
BVC
(
"1.3.6.1.4.1.4203.1.5.1"
),
/* all Operational Attributes ("+") */
BER_
BVC
(
"1.3.6.1.4.1.4203.1.5.2"
),
/* OCs in Attributes List */
BER_
BVC
(
"1.3.6.1.4.1.4203.1.5.3"
),
/* (&) and (|) search filters */
BER_
BVC
(
"1.3.6.1.4.1.4203.1.5.4"
),
/* Language Tag Options */
BER_
BVC
(
"1.3.6.1.4.1.4203.1.5.5"
),
/* Language Range Options */
{
0
,
NULL
}
};
...
...
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