Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
b85926a2
Commit
b85926a2
authored
Jan 13, 2006
by
Howard Chu
Browse files
ITS#4339 attributeoptions patch from Ralf Haferkamp @ SuSE
parent
2d3e7de4
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/ad.c
View file @
b85926a2
...
...
@@ -1177,6 +1177,13 @@ ad_define_option( const char *name, const char *fname, int lineno )
return
0
;
}
void
ad_unparse_options
(
BerVarray
*
res
){
int
i
;
for
(
i
=
0
;
i
<
option_count
;
i
++
)
{
ber_bvarray_add
(
res
,
ber_bvdup
(
&
(
options
[
i
].
name
)
));
}
}
/* Find the definition of the option name or prefix matching the arguments */
static
Attr_option
*
ad_find_option_definition
(
const
char
*
opt
,
int
optlen
)
...
...
servers/slapd/bconfig.c
View file @
b85926a2
...
...
@@ -788,6 +788,9 @@ config_generic(ConfigArgs *c) {
rc
=
1
;
}
break
;
case
CFG_ATOPT
:
ad_unparse_options
(
&
c
->
rvalue_vals
);
break
;
case
CFG_OC
:
{
ConfigFile
*
cf
=
c
->
private
;
if
(
!
cf
)
...
...
servers/slapd/proto-slap.h
View file @
b85926a2
...
...
@@ -172,6 +172,7 @@ LDAP_SLAPD_F (AttributeName *) file2anlist LDAP_P((
LDAP_SLAPD_F
(
int
)
an_find
LDAP_P
((
AttributeName
*
a
,
struct
berval
*
s
));
LDAP_SLAPD_F
(
int
)
ad_define_option
LDAP_P
((
const
char
*
name
,
const
char
*
fname
,
int
lineno
));
LDAP_SLAPD_F
(
void
)
ad_unparse_options
LDAP_P
((
BerVarray
*
res
));
LDAP_SLAPD_F
(
MatchingRule
*
)
ad_mr
(
AttributeDescription
*
ad
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment