Added code for creating records in ldap.