Ldap Error Code 21 Error In Attribute Conversion Operation
Contents |
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeWindows 10Windows 10 MobilePrevious versionsMDOPSurfaceSurface HubLibraryForums Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Error when error in attribute conversion operation, data 0, v2580 trying to add a user entry to Active Directory via LDAP
Ldap: Error Code 16 - 00000057
interface Windows Server > Directory Services Question 0 Sign in to vote I'm attempting to add
Comment Error In Attribute Conversion Operation Data 0 V2580
a user entry to an Active Directory server here via the LDAP interface from a Linux host using OpenLDAP tools (ldapadd or ldapmodify). Here's a bare-bones example of
Dsid-0c090b8a
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 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 ldap error code 16 00000057 ldaperr dsid 0c090c3e comment error in attribute conversion operation 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 /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 line
here for a quick overview of the site Help Center 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 x Dismiss Join https://social.technet.microsoft.com/Forums/windows/en-US/a56b24c8-5929-46f6-8efe-757b450edc9c/error-when-trying-to-add-a-user-entry-to-active-directory-via-ldap-interface?forum=winserverDS the Stack Overflow Community Stack Overflow is a community of 6.2 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 an entry in LDAP, http://stackoverflow.com/questions/24311076/ldap-java-error-adding-entry-javax-naming-directory-nosuchattributeexception 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.put(userPassword); entry.put(oc); // Add the entry ctx.createSubcontext(entryDN, entry); System.out.println("AddUser
SonicWALL User Sorry, we are having issues processing your request. If you own the SonicWALL product requested please confirm that you have registered your https://support.software.dell.com/active-roles/kb/122721 product at My SonicWALL . If you have already registered your product then please contact Customer Service directly for further assistance at customerservice@software.dell.com. Continue × Support Forms Under Maintenance Submitting forms on the support site are temporary unavailable for schedule maintenance. If you need immediate assistance please contact technical support. We apologize for the inconvenience. Continue Search Sign In Sign In error in Create Support Account Products ActiveRoles Boomi Change Auditor Foglight Identity Manager KACE Migration Manager Rapid Recovery Recovery Manager SharePlex SonicWALL Spotlight Statistica Toad View all Products Solutions Application & Data Integration Big Data Analytics Business Intelligence Cloud Management Data Protection Overview Backup and Recovery Deduplication and Compression Database Development and Management Database Replication & Backup Endpoint Management Mobile Workforce Management Overview error in attribute Desktop Virtualization Enterprise Mobility Management Endpoint Security Network Security Secure Remote Access Performance Monitoring Security Overview Email Security Endpoint Security Identity & Access Management Network Security Secure Remote Access Virtualization Management Microsoft Platform Management View all Solutions Solutions by Platform Active Directory Exchange Google GroupWise & NDS Hadoop Hyper-V Lotus Notes Skype for Business/Lync Office 365 Oracle SharePoint SQL Server VMware Trials Buy Support By Product Line Enterprise Reporter Foglight KACE Migration Manager Migrator NetVault One Identity Quick Connect Performance Analysis Recovery Manager Shareplex SonicWALL Spotlight SQL Navigator Toad All Products Contact Support Download Software Knowledge Base My Account My Products My Service Requests My Licenses My Groups My Profile Policies & Procedures Professional Services Technical Documentation Training & Certification User Forums Video Tutorials Support Home Communities Partners × Email Share your favorite Support content with a friend. Email To Email From Subject Information from Dell Software Support Message You might be interested in the following information For more information regarding support on your Dell Software Product, please visit www.software.dell.com/support Print Email My Downloads () Support Knowledge Base Active Rol