Click here to Skip to main content
15,350,252 members

Comments by Balaji_Reddy (Top 11 by date)

Balaji_Reddy 9-Jan-12 1:54am View
   
Thanks for your kind reply.

I was trying the same but still i'm getting the same exception. I have posted my code here and plz tel me where is the problem.



Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://192.168.168.103:389");
env.put(Context.SECURITY_PRINCIPAL, "xxxxxx");
env.put(Context.SECURITY_CREDENTIALS, "yyyyy");
String entryDN = "uid=testuser, DC=example, DC=com";

DirContext dirContext = new InitialDirContext(env);

Attribute commonName = new BasicAttribute("cn", "Test User");
Attribute surName = new BasicAttribute("su", "myuserid");
Attribute userID = new BasicAttribute("uid", "testuser");

//Object class addition
Attribute objectClass = new BasicAttribute("objectClass");
objectClass.add("top");
objectClass.add("person");
objectClass.add("organizationalPerson");
objectClass.add("user");
objectClass.add("inetOrgPerson");

Attributes entry = new BasicAttributes(true);

entry.put(userID);
entry.put(commonName);
entry.put(surName);

entry.put(objectClass);
DirContext createSubcontext = dirContext.createSubcontext("cn=testuser,DC=example,DC=com", entry);

Balaji_Reddy 6-Jan-12 9:56am View
   
its showing the following error . I just followed the same thing wat is mentioned URL


javax.naming.directory.NoSuchAttributeException:
Balaji_Reddy 19-Dec-11 9:18am View
   
:) u r welcome
Balaji_Reddy 3-Nov-11 0:58am View
   
Thanks for ur previous post.

I wan to store attribute value in a Bean.
here my xml goes


<root>

<name>xxxx


<name>yyy



Here I wan to read my attribute value using digester.
Balaji_Reddy 14-Jun-11 8:14am View
   
i am asking solution for xslt . not in java or in .net.
Balaji_Reddy 14-Mar-11 7:32am View
   
yes i understand :) but my problem is i'm getting the encrypted data from a servlet so how could i define the length of the bytes to store? how do i make the encrypted data much perfect as like i got when i encrypt in servlet? is their any solution to tat?
Balaji_Reddy 22-Feb-11 4:06am View
   
yeah i tried in google also.and u have given link for JLCA. i wan my project manager wants to use some other tool or plugins to accomplish this task bcz of version issues i mean JLCA has been removed from Visual studio from 2008 versions. so tis will supports only for .net 2.0 tats the problem why we are looking some alternatives. i hope u would have understood:)is their any step by step kinda examples to learn easily? thanks in advance
Balaji_Reddy 22-Feb-11 4:00am View
   
thanks for Ur reply first of all :) yes i agree tat no software will done it 100%. is their any free software tool to convert Java code to c# code? if so, let me know .
Balaji_Reddy 27-Dec-10 7:17am View
   
thanks . its works :)
Balaji_Reddy 30-Aug-10 9:58am View
   
thanks but i'm getting problem here where to use tat code
i mean id means my control name or anything?
how do i mention tis code to my image control



Move the mouse over this div element area.

Balaji_Reddy 24-Aug-10 5:33am View
   
ya i'm applying like tis only