Comments (7)
hello, I can't test it now. In LDAP there is no idea of "empty" attributes. An empty attribute should not be shown at all. Probably the member attribute as a NULL value. Can you try with 'member':: [chr(0)] in the add operation?
Anyway are you sure that member can be empty? It it is defined as MUST in the schema it should have a value.
ANyway tomorrow I will test it in my lab.
Bye,
Giovanni
from ldap3.
Hi,
I tested the [chr(0)]
and no luck:
{'message': 'member: value #0 invalid per syntax', 'description': 'invalidAttributeSyntax', 'referrals': None, 'result': 21, 'type': 'addResponse', 'dn': ''}
I quickly spun up a second ldap server (I have Docker images for openLdap and 389-ds) and tried the same ldif and it also accepted it.
Apache Directory Studio exports the entry as well.
from ldap3.
I found a reference in http://www.ldapexplorer.com/en/manual/103021500-edit-set-empty-value.htm to setting an Empty value for member in a group. This looks to be user-agent specific, but the principal is the same.
Thanks for looking into this.
from ldap3.
Hi, please check code in dev. I've releaxed the attribute checking. Now you can send an empty attribute value (with '') even if this is forbidden by the rfc.
attributes={'cn': "test2", 'member': ''},
Let me know if it works for you.
Bye,
Giovanni
from ldap3.
Thanks for working on this. I'll probably not be able to test until Monday, but wanted to let you know that I am not ignoring you.
from ldap3.
Hello,
Using attributes={'cn': "test2", 'member': ''},
worked perfectly for my case. Thanks!
Thanks for the attribution in the release notes... One side note... 389-ds also supports this empty case.
from ldap3.
thanks. released in 0.9.9.1
from ldap3.
Related Issues (20)
- SASL / GSSAPI(Kerberos) Authenticate ActiveDirectory using a Authorization Negotiate token
- nTsecurityDescriptor HOT 2
- No objects found within the specified OU HOT 2
- > @cannatag Yeah, I was able to reach the server, and then suddenly this error would come up. I'm now wondering if it was because of some pool of connections or something, I got around this error by rebooting the server machine and the service machine. I'll reopen if I get this error again.
- RecursionError: maximum recursion depth exceeded ( HOT 2
- Accessing conn.entries leads to TypeError: string indices must be integers HOT 1
- Rebind as anonymous after
- windows package within requirements.txt HOT 3
- Hi, HOT 3
- REUSABLE client_strategy and page search switch
- Please remove password from the Connection class HOT 1
- Entry.entry_commit_change() does not check if a auxiliary class is already added HOT 1
- Issue in ldap3.utils.dn.parse_dn when strip=True
- conn.extend.standard.paged_search is invalid in the AD domain service
- Ignore servers in pool with invalid credentials
- Using modify to change the password failed
- Creating a user,problem 5003 (WILL_NOT_PERFORM) HOT 1
- Running tests with SERVER=NONE fails
- Support for Sync Content Synchronization Operation RFC 4533
- Performance improvement querying Active Directory HOT 1
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 ldap3.