15,895,084 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
Show More