Comments (6)
I've looked at the code and it's in searchWithFilter() in LFLDAPConnection.m
calling
openldap's function ldap_search_ext_s()
The weird thing is, if I use openldap's ldapsearch(1), it work:
$ ldapsearch -h $ad_ip -D 'CN=ldapbrowser,CN=Users,dc=XXX,dc=YYY' -W -x -b
'dc=XXX,dc=YYY' 'samaccountname=bruno.clermont'
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <dc=XXX,dc=YYY> with scope subtree
# filter: samaccountname=bruno.clermont
# requesting: ALL
#
# Bruno Clermont, Users, YYY, XXX, ZZZ
dn: CN=Bruno Clermont,OU=Users,OU=YYY,DC=XXX,DC=ZZZ
[and the content of the entry]
Original comment by [email protected]
on 25 Jun 2008 at 6:16
from openvpn-auth-ldap.
I found the problem:
ldapsearch(1) (code at
http://www.openldap.org/devel/cvsweb.cgi/~checkout~/clients/tools/ldapsearch.c)
is
using ldap_search_ext(3) which is asynchronous while this plugin use the
synchronous
ldap_search_ext_s(3).
Because of denied access by the AD server, ldap_search_ext_s(3) catch a
LDAP_OPERATIONS_ERROR while ldap_search_ext_s(3) get result and ignored those
sub-tree operations error.
The only possible bug fix for this issue is to move to the asynchronous search.
For me, I'll just ignore LDAP_OPERATIONS_ERROR.
Original comment by [email protected]
on 25 Jun 2008 at 7:30
from openvpn-auth-ldap.
Original comment by [email protected]
on 7 Jul 2008 at 12:50
- Changed state: Accepted
from openvpn-auth-ldap.
This calls for supporting search across multiple trees.
Original comment by [email protected]
on 26 Jul 2008 at 5:16
- Added labels: Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from openvpn-auth-ldap.
Any patch for this? Without this feature its almost unusable for us.
Original comment by [email protected]
on 4 Nov 2010 at 6:39
from openvpn-auth-ldap.
You can use this SearchFilter for BaseDN "DC=XXX,DC=YYY":
SearchFilter "(&(objectCategory=person)(sAMAccountName=%u))"
or restrict to users from VPN group:
SearchFilter
"(&(objectCategory=person)(sAMAccountName=%u)(memberOf=CN=VPN,OU=GGG,DC=XXX,DC=Y
YY))"
Original comment by [email protected]
on 4 Aug 2011 at 10:29
from openvpn-auth-ldap.
Related Issues (20)
- Support OpenVPN Challenge/Response protocol
- Building on recent compilers
- ldaps (TLS) with self signed certificate HOT 6
- OpenVPN LDAP Plugin doesn't run in asynchronous mode HOT 3
- LDAP bind failed immediately: Can't contact LDAP server HOT 6
- openldap password expiration still can login
- Authenticate non local users to OpenVPN with openvpn and openvpn-auth-ldap. HOT 5
- Tips to compile plugin on CentOS 7.6
- Plugin and OpenVPN Crashes with error after successful LDAP(ActiveDirectory) Query
- option to build statically
- Configure test fails to add -std=gnu99 on Fedora Rawhide HOT 1
- Compiling on Rhel8 - no Objective-C Compiler support ? HOT 3
- Customized search filters!! HOT 1
- OpenVPN can't get the userworkstations attribute
- Cannot LDAP with win 2016 but LDAP normal with win2012 (active directory)
- Cannot use a Bind Password containing double quotes HOT 1
- plugin does not work if OpenVPN daemon runs as nobody/nogoup and SSL enabled HOT 1
- cannot make it working with google workspace HOT 7
- is it possible to specify VPN client configurations via LDAP return parameters
- Help! configuring "openvpn-auth-ldap"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvpn-auth-ldap.