title: Python-Ldap lib. Import LDIF
body: <p>Is it possible to import LDIF like that </p>
  
  <pre><code>dn: cn=vpupkin,cn=people,ou=company,dc=domain,dc=com
  c: UA
  cn: vpupkin
  employeetype: Indoor Front-end developer
  gidnumber: 500
  givenname: Vasya
  homedirectory: /home/vpupkin
  host: example.com
  l: Kyiv
  loginshell: /bin/bash
  mail: vpupkin@domain.com
  o: Microsoft
  objectclass: inetOrgPerson
  objectclass: posixAccount
  objectclass: top
  objectclass: shadowAccount
  objectclass: ldapPublicKey
  objectclass: extensibleObject
  labeleduri: skype://test
  sn: Pupkin
  sshpublickey: ssh-rsa key
  st: Trudova, 15
  telephonenumber: 7777777777
  uid: vpupkin
  uidnumber: 1000
  userpassword: {SHA}fEqNCco3Yq9h5ZUglD3CZJT4lBs=
  </code></pre>
  
  <p>using python-ldap library (<a href="http://www.python-ldap.org/" rel="nofollow">http://www.python-ldap.org/</a>)? </p>
  
  <p>Yes, I can add new record to LDAP in such way <a href="http://www.grotan.com/ldap/python-ldap-samples.html#add" rel="nofollow">http://www.grotan.com/ldap/python-ldap-samples.html#add</a> but I am not sure about such text ldif-file.</p>
  
  <p>PS. Full answer is here <a href="http://pastebin.com/eQU7xBfj" rel="nofollow">http://pastebin.com/eQU7xBfj</a></p>