Error In Attribute Conversion Operation Data 0
Contents |
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeOnline20132010Other VersionsRelated ProductsLibraryForumsGallery Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Error when trying to add a user entry to Active Directory via
Error In Attribute Conversion Operation Data 0 V2580
LDAP interface Windows Server > Directory Services Question 0 Sign in to error in attribute conversion operation data 0 v1db1 vote I'm attempting to add a user entry to an Active Directory server here via the LDAP interface comment error in attribute conversion operation from a Linux host using OpenLDAP tools (ldapadd or ldapmodify). Here's a bare-bones example of what I'm trying to add to Active Directory: DN: CN=John Smith,CN=Users,DC=ad,DC=cs,DC=wisc,DC=edu objectClass: user CN: John Smith
Error Add No Such Attribute 16
sn: John givenName: Smith displayName: John Smith sAMAccountName: jsmith userPrincipalName: jsmith@ad.cs.wisc.edu altSecurityIdentities: Kerberos:jsmith@CS.WISC.EDU The Active Directory domain is "ad.cs.wisc.edu" in this case. I am binding to Active Directory via LDAP+SSL (port 636) as user Administrator. I can successfully bind to Active Directory and search for entries, but adding errors produces the following error: ldapadd -x -H ldaps://bunyan.ad.cs.wisc.edu -D "CN=Administrator,CN=Users,DC=ad,DC=cs,DC=wisc,DC=edu" -w ADMINISTRATOR_PW -f
Error Modify No Such Attribute 16
/tmp/jsmith.ldif -v ldap_initialize( ldaps://bunyan.ad.cs.wisc.edu ) add objectClass: user add CN: John Smith add sn: John add givenName: Smith add displayName: John Smith add sAMAccountName: jsmith add userPrincipalName: jsmith@ad.cs.wisc.edu adding new entry "CN=John Smith,CN=Users,DC=ad,DC=cs,DC=wisc,DC=edu" modify complete ldapadd: No such attribute (16) additional info: 00000057: LdapErr: DSID-0C090C3E, comment: Error in attribute conversion operation, data 0, v1db1 The "additional info" is logged on event log on the Active Directory server as well as being returned when trying to run ldapadd. Any suggestions from Active Directory gurus out there? Am I missing some required fields as demanded by AD schema, or is this a permission issue? John Thursday, April 28, 2011 7:04 PM Reply | Quote Answers 2 Sign in to vote Looks like my LDIF file had some trailing spaces at the end of some lines. ldapadd/ldapmodify (or the LDAP service on our Active Directory server) apparently doesn't like that. Once those trailing space were removed, the LDIF loads just fine. Thank you to those who looked into this and offered suggestions. John Marked
here for a quick overview of the site Help Center Detailed answers to any questions you might have ldap error code 16 00000057 Meta Discuss the workings and policies of this site About Us
Ldaperr: Dsid-0c090cd6, Comment: Error In Attribute Conversion Operation, Data 0, V2580
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with ldaperr: dsid-0c090da7 us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, https://social.technet.microsoft.com/Forums/sharepoint/en-US/a56b24c8-5929-46f6-8efe-757b450edc9c/error-when-trying-to-add-a-user-entry-to-active-directory-via-ldap-interface?forum=winserverDS just like you, helping each other. Join them; it only takes a minute: Sign up Zend Ldap attribute error in Synfony 2 and Active Directory up vote 1 down vote favorite I'm bulding a Symfony2 app and I need to connect to my AD server to add a user when they register on the website. I http://stackoverflow.com/questions/23396461/zend-ldap-attribute-error-in-synfony-2-and-active-directory use the ZendLdap class included in SF2. I also use FOSUserBundle to handle register and login. The connection to the server works fine but I have this error when I try to add an entry: 0x10 (No such attribute; 00000057: LdapErr: DSID-0C090D87, comment: Error in attribute conversion operation, data 0, v2580): adding: cn=jordane,ou=CUBBYHOLE,dc=cubbyhole,dc=me"}] I've searched a lot to figure out why I can't add my user, I think all my attributes are ok and correctly spelled but maybe I made a misconfiguration. Here is my class: class LdapRegistrationController extends BaseController { protected $ldapDriver; public function __construct() { $ldapOptions = array( 'host' => 'cubbyhole.me', 'port' => 389, 'useStartTls' => false, 'useSsl' => false, 'username' => 'CUBBYHOLE\Administrateur', 'accountCanonicalForm' => 3, 'password' => 'mypassword', 'accountDomainName' => 'cubbyhole.me', 'accountDomainNameShort' => 'CUBBYHOLE', 'baseDn' => 'CN=Users, dc=cubbyhole, dc=me', 'accountFilterFormat' => '(&(objectClass=Top:person;organizationalPerson;user))' ); //connection try { $this->ldapDriver = new Ldap($ldapOptions); $this->ldapDriver->bind(); } catch(Exception $e) { throw new LdapException("Error connecting to LDAP. Exception message: ".$e->getMessage()); } } /** * @param User $user * @throw
here for a quick overview of the site Help Center http://stackoverflow.com/questions/24311076/ldap-java-error-adding-entry-javax-naming-directory-nosuchattributeexception Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question error in x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up LDAP java error: adding entry.javax.naming.directory.NoSuchAttributeException up vote 1 down vote favorite 1 I have a problem adding error in attribute an entry in LDAP, precisely I want to add a user. class AddUser { public static void main(String[] args) { String userName = "manager"; String password = "pass"; Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://192.168.10.45:389/dc=mydc,dc=local"); env.put(Context.SECURITY_AUTHENTICATION, "simple"); env.put(Context.SECURITY_PRINCIPAL, new String("mydc" + "\\" + userName)); env.put(Context.SECURITY_CREDENTIALS, password); // env.put(Context.REFERRAL, "follow"); // entry's DN String entryDN = "cn=NewUser, dc=mydc, dc=local"; // entry's attributes Attribute cn = new BasicAttribute("cn", "NewUser"); Attribute sn = new BasicAttribute("sn", "Smith"); Attribute mail = new BasicAttribute("mail", "newuser@foo.com"); Attribute phone = new BasicAttribute("telephoneNumber", "+1 222 3334444"); Attribute uid = new BasicAttribute("uid", "nsmith"); Attribute userPassword = new BasicAttribute("userPassword", "pwd1"); Attribute oc = new BasicAttribute("objectClass"); oc.add("dcObject"); oc.add("person"); oc.add("inetOrgPerson"); DirContext ctx = null; try { // get a handle to an Initial DirContext ctx = new InitialDirContext(env); // build the entry Attributes entry = new BasicAttributes(); entry.put(cn); entry.put(sn); entry.put(mail); entry.put(phone); entry.put(uid); entry.