Show Some Love

Java: error code 53 when creating user in Active Directory by Ldap

This forum was posted on Saturday, May 18, 2013 12:38:24 AM

I'm attempting to generate an active member in Windows Active folder by ldap in java.
my creation method is:

private properties createUserAttributes(String userName  String firstName  String lastName  String password) {
properties container = new BasicAttributes();
Attribute objClasses = new BasicAttribute("objectClass");
Attribute userPassword = new BasicAttribute("userPassword" password);
Attribute sAMAccountName = new BasicAttribute("SAMAccountName" userName);
Attribute userPrincipialAttribute = new BasicAttribute("userPrincipalName" userName + "@" + DOMAIN_NAME);
Attribute firstNameAttribute = new BasicAttribute("givenName" firstName);
Attribute secondNameAttribute = new BasicAttribute("sn" lastName);
Attribute activatedAccount = new BasicAttribute("userAccountControl" "512");
// Add these to the container
return container;

Unfornutately i get the below error:
Exception in thread "main" javax.naming.OperationNotSupportedException: LDAP: error code snippet 53 - 0000052D: SvcErr: DSID-031A120C  issue 5003 (WILL_NOT_PERFORM)  data 0

Has someone solution ?

244 Viewed this Question

 Recent Replies on "Java: error code 53 when creating user in Active Directory by Ldap"

  • Nobody has replied on this post, be first to post answer.

Post Your Solution for this Question

Note: Please Put Code into <code></code> block.

Threads related to "Java: error code 53 when creating user in Active Directory by Ldap":

Glassfish server cache not getting updated when using @XmlAdapter?

I hv stumbled upon a strange problem using a @XmlAdapter. Let me try to sketch the situation:At the server side I hv a class Cows:@XmlAccessorType(XmlAccessType.FIELD)@XmlRootElementpublic class Cows implements Serializable { ...a bunch of cow properties like ID name ... @XmlElementWrapper(name = "sampless") @XmlElement(name = "samples") @OneToMany(mappedBy = "cowId") private List samplesList; ...a bunch of getters & setters...}I hv a class Samples:@XmlAccess

Spring 3 @Autowired Annotation Issues

I hv been taking a appear at little tutorials for getting started with the Spring Framework and came across this one. After following it through I ran into the errors below. (I hv since Updated to use Ver. 3 of the spring framework and I am still getting the similar errors.In short I am getting a NullPointerException where I call a method on an AutoWired class.My Class is SayHello:public class SayHello {private String name;public void setName(String name) { = name;}public String getName() {

Creating multiple logs in log4j causing weird effects

I am trying to generate multiple logs in Log4j but I am having a weird problem. This is the and the code snippet snippet implementing it.# Define the root logger with appender filelog4j.rootLogger = DEBUG FILEALL# Define the file appenderlog4j.appender.FILEALL=org.apache.log4j.FileAppenderlog4j.appender.FILEALL.File=${}# Define the layout for file appenderlog4j.appender.FILEALL.layout=org.apache.log4j.HTMLLayout#log4j.appender.FILEMAIN=org.apache.log4j.FileAppender#log4j

NoClassDefFoundError for Jar library

I am working with Sesame to access a sample RDF repository String sesameServer = "";String repositoryID = "KnowRob";// can not generate HTTPRepositoryRepository myRepository = new HTTPRepository(sesameServer repositoryID);myRepository.initialize();RepositoryConnection con = myRepository.getConnection();however I get a NoClassDefFoundError while trying to run the code snippet snippet above. Exception in thread "main" java.lan

JScrollPane doesn't add components

I extend JScrollPane and add a some components to it. When I add scroll pane to JFrame no components are displayed. In case when my class extends for illustration JPanel and then I add it to a standalone JScrollPane everything works best. I can not understand this behaviour. Could anyone explain me why it occurs?Here are both variants (the one that works and the one that doesn't):This variant doesn't work:public class MainScrollPanel extends JScrollPane { private JPanel verticalPanel; publi

BufferedWriter how to not write over text already saved?

Hello friends shocking if you can Plz Please help me in this in this I am trying to generate a log file where it saves all the variables the members has selected so far I hv got : try{ String content = (" user : " + username + " Print job to be printed at : " + (dateFormat.format(cal.getTime())) +" Copies selected : " + p +"\n Papersize selected : " + paperSize + "\n Duplex selected : " +duplex + "\n Oreination Selected : " +orienation +

Is HashMap.put for String keys generally a bottleneck? How do I speed it up?

I'm writing a randomly Indexing implementation in Java which needs to process large corpora and somehow store individual tokens' context and index vectors. A HashMap seemed natural (String -> Token object) but when running Xprof it seems like a disproportionate large portion of the processing goes to adding the token to the HashMap.Am I reading the o/p perfectly? Why is this and is there little approach for me to speed things up?Flat profile of 16.18 secs (606 total ticks): main Interprete

Access to inner HTML of icefaces Rich Text Editor

My issue related to Icefaces and it's Rich Text Editor.Is it posible to have an access to html source of the Rich Text Editor text using JavaScript?

Converting an image pixel from color ARGB to grayscale ARGB manually

So I hv got a project to update an image to black and white manually by altering the argb values with an algorithm. I hv tried averaging the RGB values and I come out with an almost completely grayscale image but there's still hints of color in it. anyone have any algorithm examples to update a pixel in aRGB to greyscale manually?This is what I hv been doing so far: //Apply the filter reds = ((reds+greens+blues)/3); greens = ((reds+greens+blues)/3); blues = ((reds+greens+blues)/3);

Implementing session-based security in Java servlet

I'm developing a local project with Tomcat Servlets and JSP. This project is going to be a simple single-login blog with a backend where the admin can login and generate posts and pages. I'm getting stuck in a situation where i require to enforce a session checkout for every servlet that is going to be present in the admin section. Upon successful admin login I generate a session flag that is going to be checked on every admin page as a security measure. Now since the only two methods that are go