<p dir="ltr">Ali<br>
Look at doing the add manually with an ldif file and the open ldap command line tools.  When you figure that out you will figure out using the python module for the same.  There are reams written on meeting prerequisites for existing structure and attributes needed for an object class.  The do not belong in the documentation of a python interface to a c api for ldap.</p>
<div class="gmail_quote">On Oct 14, 2014 1:28 AM, "Ali Reza" <<a href="mailto:alirezaimi@gmail.com">alirezaimi@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I tested another configs for attr and objects, but not work and can not create a ou or group ,<div>can u explain more or give me some clue ?(with an example)</div><div><br></div><div>thanks alot for support.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 12, 2014 at 3:31 PM, Michael Ströder <span dir="ltr"><<a href="mailto:michael@stroeder.com" target="_blank">michael@stroeder.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ali Reza wrote:<br>
> How can i create an ou or group in active directory ?<br>
<br>
Just like any other entry using the appropriate set of object classes and<br>
attributes.<br>
<br>
Make yourself familiar with<br>
<br>
<a href="http://www.python-ldap.org/doc/html/ldap.html#ldap.LDAPObject.add" target="_blank">http://www.python-ldap.org/doc/html/ldap.html#ldap.LDAPObject.add</a><br>
<br>
<a href="http://www.python-ldap.org/doc/html/ldap.html#ldap.LDAPObject.modify" target="_blank">http://www.python-ldap.org/doc/html/ldap.html#ldap.LDAPObject.modify</a><br>
<br>
You probably want to use the synchronous methods add_s() and modify_s().<br>
<br>
Ciao, Michael.<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font style="font-family:comic sans ms,sans-serif"><b>>>> print (" Alireza Mazare'i ")<br></b></font></div>
</div>
<br>_______________________________________________<br>
python-ldap mailing list<br>
<a href="mailto:python-ldap@python.org">python-ldap@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ldap" target="_blank">https://mail.python.org/mailman/listinfo/python-ldap</a><br>
<br></blockquote></div>