On 15/12/2011 14:57, Juan Miscaro wrote:
So do I need to get the actual schema from AD and try to import it or is there something more easily available? It doesn't seem like I'm doing something exotic here. Others must have confronted such a situation. Right? :)
You'd think so. I've hit the same problem recently.
You can't import the MS AD schema directly, it uses syntaxes that OpenLDAP doesn't understand. The OpenLDAP documentation suggests that adding new syntaxes requires changes to the source code, so it's not trivial to solve.
I found a workaround which may be useful to you. OpenLDAP won't return attributes for an unknown schema initially, but if you do a single search for an attribute it does understand, subsequent searches can be made on the ones for which there's no schema.
On my OpenLDAP AD proxy, as soon as slapd has started I do a trivial search for a 'cn' attribute for a known record. After that, it's possible to search on sAMAccountName or other attributes without any problems.