Skip to content

Empty attributes from AD are missing #37

@richardun

Description

@richardun

In my active_directory gem, I use net-ldap. I have accounts that have empty attributes in AD, like extensionattribute2. When I pull the entry through my gem and look for that attribute, it's not there. However, if I add something to it in AD and do another search, the entry now has the attribute.

I need to be able to write values to attributes that will be empty from AD. Would you be so kind as to help me figure out where I'm going wrong? Essentially, I'm getting a "no id given" ArgumentError.

I'm asking you because I think that net-ldap is not returning attributes that are empty. Perhaps there is some property-add function I can write in my own clone of ruby-net-ldap, but I would need some guidance to see if I'm anywhere near being correct.

Thanks in advance,
Richard

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions