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
f42966f9
Commit
f42966f9
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Fix #undef LDAP_UFN
parent
b2e776cf
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
clients/fax500/rp500.c
+4
-1
4 additions, 1 deletion
clients/fax500/rp500.c
include/ldap_defaults.h
+8
-0
8 additions, 0 deletions
include/ldap_defaults.h
libraries/libldap/getattr.c
+3
-3
3 additions, 3 deletions
libraries/libldap/getattr.c
with
15 additions
and
4 deletions
clients/fax500/rp500.c
+
4
−
1
View file @
f42966f9
...
...
@@ -129,6 +129,7 @@ main( int argc, char **argv )
}
result
=
NULL
;
#ifdef LDAP_UFN
if
(
strchr
(
key
,
','
)
!=
NULL
)
{
int
ld_deref
=
LDAP_DEREF_FINDING
;
ldap_set_option
(
ld
,
LDAP_OPT_DEREF
,
&
ld_deref
);
...
...
@@ -140,7 +141,9 @@ main( int argc, char **argv )
exit
(
-
1
);
}
matches
=
ldap_count_entries
(
ld
,
result
);
}
else
{
}
else
#endif
{
for
(
fi
=
ldap_getfirstfilter
(
filtd
,
"rp500"
,
key
);
fi
!=
NULL
;
fi
=
ldap_getnextfilter
(
filtd
)
)
{
if
(
(
rc
=
ldap_search_s
(
ld
,
base
,
LDAP_SCOPE_SUBTREE
,
...
...
This diff is collapsed.
Click to expand it.
include/ldap_defaults.h
+
8
−
0
View file @
f42966f9
...
...
@@ -81,8 +81,10 @@ Please try again later.\r\n"
#define FINGER_DEREF LDAP_DEREF_FINDING
/* attribute to use when sorting results */
#define FINGER_SORT_ATTR SORT_ATTR
#ifdef LDAP_UFN
/* enable ufn support */
#define FINGER_UFN
#endif
/* timeout for searches */
#define FINGER_TIMEOUT 60
/* number of DN components to show in entry displays */
...
...
@@ -99,8 +101,10 @@ Please try again later.\r\n"
#define GO500_SORT_ATTR SORT_ATTR
/* timeout for searches */
#define GO500_TIMEOUT 180
#ifdef LDAP_UFN
/* enable ufn support */
#define GO500_UFN
#endif
/*
* only set and uncomment this if your hostname() does not return
* a fully qualified hostname
...
...
@@ -118,8 +122,10 @@ Please try again later.\r\n"
#define GO500GW_PORT 7777
/* timeout on all searches */
#define GO500GW_TIMEOUT 180
#ifdef LDAP_UFN
/* enable ufn support */
#define GO500GW_UFN
#endif
/* attribute to use when sorting results */
#define GO500GW_SORT_ATTR SORT_ATTR
/*
...
...
@@ -146,8 +152,10 @@ Please try again later.\r\n"
#define RCPT500_SORT_ATTR SORT_ATTR
/* max number of hits displayed in full before a list is presented */
#define RCPT500_LISTLIMIT 1
#ifdef LDAP_UFN
/* enable ufn support */
#define RCPT500_UFN
#endif
/* number of DN components to show in entry displays */
#define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/getattr.c
+
3
−
3
View file @
f42966f9
...
...
@@ -58,13 +58,13 @@ ldap_first_attribute( LDAP *ld, LDAPMessage *entry, BerElement **berout )
return
NULL
;
}
#if
0
#if
LDAP_SEQORSET_BAILOUT
if
(
len
==
0
)
{
return
NULL
;
}
#endif
#if
0
#if
LBER_SEQORSET_AVOID_OVERRUN
/* set the length to avoid overrun */
rc
=
ber_set_option
(
ber
,
LBER_OPT_REMAINING_BYTES
,
&
len
);
if
(
rc
!=
LBER_OPT_SUCCESS
)
{
...
...
@@ -100,7 +100,7 @@ ldap_next_attribute( LDAP *ld, LDAPMessage *entry, BerElement *ber )
assert
(
entry
!=
NULL
);
assert
(
ber
!=
NULL
);
#if
0
#if
LDAP_SEQORSET_BAILOUT
if
(
ber_pvt_ber_remaining
(
ber
)
==
0
)
{
return
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