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
e80b5d40
Commit
e80b5d40
authored
23 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Clean up CLDAP stuff
parent
7bf66986
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
libraries/libldap/init.c
+1
-0
1 addition, 0 deletions
libraries/libldap/init.c
libraries/libldap/ldap-int.h
+3
-3
3 additions, 3 deletions
libraries/libldap/ldap-int.h
libraries/libldap/open.c
+2
-2
2 additions, 2 deletions
libraries/libldap/open.c
with
6 additions
and
5 deletions
libraries/libldap/init.c
+
1
−
0
View file @
e80b5d40
...
...
@@ -399,6 +399,7 @@ void ldap_int_initialize_global_options( struct ldapoptions *gopts, int *dbglvl
#ifdef LDAP_CONNECTIONLESS
gopts
->
ldo_peer
=
NULL
;
gopts
->
ldo_cldapdn
=
NULL
;
gopts
->
ldo_is_udp
=
0
;
#endif
#ifdef HAVE_CYRUS_SASL
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/ldap-int.h
+
3
−
3
View file @
e80b5d40
...
...
@@ -119,10 +119,10 @@ struct ldapoptions {
#define LDAP_INITIALIZED 0x1
#define LDAP_VALID_SESSION 0x2
#ifdef LDAP_CONNECTIONLESS
#define LDAP_UDP_SESSION 0x4
#define LDAP_IS_UDP(ld) (ld->ld_options.ldo_valid & LDAP_UDP_SESSION)
#define LDAP_IS_UDP(ld) ((ld)->ld_options.ldo_is_udp)
void
*
ldo_peer
;
/* struct sockaddr* */
char
*
ldo_cldapdn
;
int
ldo_is_udp
;
#endif
int
ldo_debug
;
...
...
@@ -301,7 +301,7 @@ struct ldap {
LDAPConn
*
ld_conns
;
/* list of server connections */
void
*
ld_selectinfo
;
/* platform specifics for select */
};
#define LDAP_VALID(ld) ( (ld)->ld_valid
&
LDAP_VALID_SESSION )
#define LDAP_VALID(ld) ( (ld)->ld_valid
==
LDAP_VALID_SESSION )
#ifdef LDAP_R_COMPILE
#include
<ldap_pvt_thread.h>
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/open.c
+
2
−
2
View file @
e80b5d40
...
...
@@ -238,7 +238,7 @@ ldap_initialize( LDAP **ldp, LDAP_CONST char *url )
}
#ifdef LDAP_CONNECTIONLESS
if
(
ldap_is_ldapc_url
(
url
))
ld
->
ld_options
.
ldo_valid
|=
LDAP_UDP_SESSION
;
LDAP_IS_UDP
(
ld
)
=
1
;
#endif
}
...
...
@@ -303,7 +303,7 @@ ldap_int_open_connection(
}
else
{
host
=
srv
->
lud_host
;
}
ld
->
ld_options
.
ldo_valid
|=
LDAP_UDP_SESSION
;
LDAP_IS_UDP
(
ld
)
=
1
;
rc
=
ldap_connect_to_host
(
ld
,
conn
->
lconn_sb
,
proto
,
host
,
addr
,
port
,
async
);
...
...
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