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
fd3000d5
Commit
fd3000d5
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Initialize openldap_ldap_global_options struct (not yet used).
parent
1f4b479b
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
libraries/libldap/init.c
+19
-1
19 additions, 1 deletion
libraries/libldap/init.c
libraries/libldap/ldap-int.h
+5
-0
5 additions, 0 deletions
libraries/libldap/ldap-int.h
with
24 additions
and
1 deletion
libraries/libldap/init.c
+
19
−
1
View file @
fd3000d5
...
...
@@ -9,7 +9,10 @@
#include
"ldap-int.h"
struct
ldapoptions
openldap_ldap_global_options
;
struct
ldapoptions
openldap_ldap_global_options
;
#undef gopts
#define gopts openldap_ldap_global_options
int
openldap_ldap_initialized
=
0
;
...
...
@@ -19,5 +22,20 @@ void openldap_ldap_initialize( void )
return
;
}
gopts
.
ldo_version
=
LDAP_VERSION2
;
gopts
.
ldo_deref
=
LDAP_DEREF_NEVER
;
gopts
.
ldo_timelimit
=
LDAP_NO_LIMIT
;
gopts
.
ldo_sizelimit
=
LDAP_NO_LIMIT
;
gopts
.
ldo_defhost
=
strdup
(
"localhost"
);
gopts
.
ldo_defport
=
LDAP_PORT
;
LDAP_BOOL_ZERO
(
&
gopts
);
#if defined( LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS ) || \
LDAP_VERSION_MAX > LDAP_VERSION2
LDAP_BOOL_SET
(
&
gopts
,
LDAP_BOOL_REFERRALS
);
#endif
openldap_ldap_initialized
=
1
;
}
This diff is collapsed.
Click to expand it.
libraries/libldap/ldap-int.h
+
5
−
0
View file @
fd3000d5
...
...
@@ -67,6 +67,9 @@ struct ldapoptions {
int
ldo_timelimit
;
int
ldo_sizelimit
;
char
*
ldo_defhost
;
int
ldo_defport
;
int
ldo_cldaptries
;
/* connectionless search retry count */
int
ldo_cldaptimeout
;
/* time between retries */
int
ldo_refhoplimit
;
/* limit on referral nesting */
...
...
@@ -93,6 +96,8 @@ struct ldap {
int
ld_version
;
/* version connected at */
char
*
ld_host
;
int
ld_port
;
char
ld_lberoptions
;
LDAPFiltDesc
*
ld_filtd
;
/* from getfilter for ufn searches */
...
...
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