Kiran Sonaje

Greenhorn
+ Follow
since Aug 23, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kiran Sonaje

Hi,

Can you please tell me plugin for java having computational index measurement? (Supportive to ECLIPSE)

-Kiran
Hi,

Can you please tell me plugin for java having computational index measurement? (Supportive to ECLIPSE)

-Kiran
15 years ago
Can you tell me exact difference between oracle 9.2.0.4.0 and 9.2.0.8.0? also let me know why 9.2.2.8.0 is recommended?

Thanks in advance
Kiran
15 years ago
Thanks Joanne

But this is not really i was expecting. I wanted why not how?

This is the answer, hope it will help you out.






Thanks

Kiran
16 years ago
Hi Joanne,

Thanks for the reply.

For the above java code I am getting following compilation error




As per your suggetion if it is one dimensional array how does compiler complaining about 3 dimensional array. What you explained is solution for compilation and i am expecting what is the root cause for this? How JVM is handing this mechanism.

Waiting for reply .

Thanks

Kiran
16 years ago
I am getting lot compilation errors while compiling the program below.



The errors are occuring on all the lines commented in the above code.
I'm specifically interested to know why the line "hms = new float[2][5];" fails in compilation.
Can anybody please explain this to me?
16 years ago
what is the use of java -cs option.
18 years ago
Just put your servlet.jar into your jdk's jre\lib\ext directory.
18 years ago
getMajorVersion()
and getMinorVersion() these 2 methods will tell you the vesion of servlet on which you are working
18 years ago
Hello Friends
Since last few days I m tring to create cluster. Can you plz help me out and send me the procedure to create cluster in weblogic.

Thax
19 years ago
Hello Friends,
I want to implement import user list from Active Directory to my application using JNDI. But which making directory i have to make connection with Active Directory. While connecting to Active Directory I have to login to user exist in Active Directory. I want to connect to Active Directory by using login name of user not by display name.

How can I do this?

Thax
Kiran Sonaje
Hi all,

I m new in JNDI.
As my company is going to apply active directories, all the applications have to use the AD's login name and password.

I try the following code for checking the user's login and password. but something is interesting...
except the "administrator" can pass the login, all the user in the AD are fail to pass the login.

So........ Did I miss some setting in AD or my code has problem?

pls help

Thanks

Regards,

Kiran sonaje



public static int chklogin(String loginName, String password)
throws Exception {
int found = 0;
Hashtable env = new Hashtable(11);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "CN=" + loginName + ", CN=users, DC=mydc");
env.put(Context.SECURITY_CREDENTIALS, password);
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://:389/DC=mydc");
env.put(Context.REFERRAL, "follow");

try {
DirContext ctx = new InitialDirContext(env);
String[] sAttrIDs = new String[2];
Attributes attr = ctx.getAttributes("");
System.out.println("Domain Name:" + attr.get("name").get());
found = 1;
} catch (NamingException e) {
System.err.println("Problem getting attribute: " + e);
throw e;
} catch (Exception e) {
System.err.println("ERROR: " + e);
throw e;
}
return found;
}
Hello Friends,
Since last 2-3 days, i m tryinh to create new organisation unit in active directory. I am not getting success. Can anybody help me? I want code to create new OU in Active Directory..

Thax
Kiran Sonaje
Hi,
U can make export option in report i.e u can generate report in different format like excel,text,PDF. For generating PDF report u can take help of PDFGenerator.jar, just make certain changes according to ur need in jar. N once u go through PDFGenerator code u can easily write code for excel n text.
19 years ago
Hello friends,
Currently i m working on Active Directory in java, Can u plz tell me how can i create my own policy for sharing a folder
19 years ago