Kevin McCormack
Kevin McCormack
I was able to get this response doing the following ```sh # Run an OpenLDAP container in a separate terminal scripts/ldap-docker # Make a successful anonymous bind and search ldapsearch...
This reproduces the issue as well ```rb require_relative 'lib/net-ldap' @ldap = Net::LDAP.new host: 'localhost', port: 389, auth: { method: :anonymous } @ldap_config = Net::LDAP.new host: 'localhost', port: 389, auth: {...
I'm thinking we'll want to indicate somehow that the bind failed but the search succeeded. Perhaps print a warning? ```rb # Yields an open connection if there is one, otherwise...
We should also test this with another LDAP server such as OpenDJ to see what would happen there.
Hi @jvodan do you have a few moments to write a test for this feature? Thanks!
Thank you for opening this issue! You have described this very well and I would be happy to review a pull request for this fix!
Seems like a reasonable request to me! I do not have the time myself to work on these but I would be happy to review a pull request adding these...
This has been working pretty well for me so far. ```ruby def modify_entries_from_file(file_path) Net::LDAP.open(CONFIG) do |ldap| Net::LDAP::Dataset.read_ldif(File.open(file_path)).each do |dn, args| case args[:changetype].first when 'add' || nil ldap.add dn: dn, attributes:...
@cmdrclueless do you have a few moments to attempt to write some tests for this? Thanks!
I welcome a pull request to add this!