Help coderanch get a
new server
by contributing to the fundraiser

Alok Rai

Greenhorn
+ Follow
since Nov 20, 2000
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 Alok Rai

I have an ldap serevr of iPlanet and have a certificated published in that.Now i want to read the thumbPrint,PublicKeyInfo,Certificate Type
etc.
Can anybody help me to read these informations.
Regards,
Alok
22 years ago
I have an ldap serevr of iPlanet and have a certificated published in that.Now i want to read the thumbPrint,PublicKeyInfo,Certificate Type
etc.
Can anybody help me to read these informations.
Regards,
Alok
22 years ago
I am trying to search entries and their properties from iPlanet LDAP Server.The structure of my directory is as follow:
o=netscaperoot
c=my country
o=my organisation
ou= organisational unit
ou=organisation1
ou=organisation2
from the above structure if I search any thing making my search base o=my organisation,c=my country,o=netscaperoot or any other base I do not get any record where as if I search any thing from any level from default structure abailable with iPlanet LDAP Server I get the proper results.
Can anybody help me to solve my problem.
Regards,
Alok
22 years ago
i am using iPlanet web server and LDAP server i am able to get all attributes of OU in directory serevr, in my directory server i have added one attribute of an OU that is cacertificate and now i want to access the thumbprint of that certiicate, Can you please help me in getting the thubmprint of certificates stored in differend directories.
my code is as follow:
public static LinkedList search(String param[])
{


Hashtable env = new Hashtable();
String entries=null;
LinkedList entriesList=new LinkedList();
if((param[0]==null || param[0].length()==0))
entriesList.add("Host name not found....");

if((param[3]==null || param[3].length()==0))
entriesList.add("Search base not specified....");

if((param[4]==null || param[4].length()==0))
entriesList.add("Search criteria blank....");

if(entriesList.size()>0)
return entriesList;

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
/* param[0]=URL of LDAP Serever e.i. ldap://host:389
*/
env.put(Context.PROVIDER_URL,param[0]);

try{
DirContext ctx=new InitialDirContext(env);
SearchControls constraints = new
SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
/*
pram[3]=search base i.e. o=root and param[4]=Search condition i.e. objectClass=*
*/
NamingEnumeration results=ctx.search(param[3],param[4],constraints);
Attributes attr = null;
Enumeration enm=null;
while(results!=null && results.hasMore())
{
SearchResult sr = (SearchResult) results.next();
entries=sr.getName();
attr=sr.getAttributes();
enm=attr.getAll();
while(enm.hasMoreElements())
{
entries+=enm.nextElement()+", ";
}
entriesList.add(entries);
}
}catch(Exception e)
{
e.printStackTrace();
}
return entriesList;
}

Regards,
Alok
22 years ago
I am new to LDAP, and trying to write a simple programe to communicate (search the users list and their information) from LDAP, I am using iPlanet Web Serevr 6.0 sp2 and iPlanet LDAP server 5.0. Please help me if you can...
If you can help me creating user and defining their access right (ACI)
Waiting for your reply and expecting a good discussion on this topic
22 years ago
I am new to LDAP, and trying to write a simple programe to communicate (search the users list and their information) from LDAP, I am using iPlanet Web Serevr 6.0 sp2 and iPlanet LDAP server 5.0. Please help me if you can...
If you can help me creating user and defining their access right (ACI)
Waiting for your reply and expecting a good discussion on this topic
22 years ago
I do not know how to use type three driver can you help me.