regarding authentication using LdapBean
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rahul_Agarwal
Posted On:   Wednesday, June 12, 2002 11:29 AM

Hi, I am trying to authenticate my university website using Beans. I am using LoginBean, LdapBean and DataBean for that purpose.I included ldapjdk.jar in lib directory( and changed its file permissions to 777...I guess thats all I need to do with the jar file. My LdapBean and LoginBean(in "pfd" package of classes directory) are showing following errors. ***************** LdapBean Errors ****************** Ldapbean.java:4: package netscape.ldap does not exist import netscape.ldap.*; ^ Ldapbean.java:78: cannot resolve symbol symbol : class LDAPConnection location: class pfd.LdapBean    More>>

Hi,
I am trying to authenticate my university website using Beans. I am using LoginBean, LdapBean and DataBean for that purpose.I included ldapjdk.jar in lib directory( and changed its file permissions to 777...I guess thats all I need to do with the jar file.


My LdapBean and LoginBean(in "pfd" package of classes directory) are showing following errors.


*****************

LdapBean Errors

******************



Ldapbean.java:4: package netscape.ldap does not exist

import netscape.ldap.*;

^



Ldapbean.java:78: cannot resolve symbol

symbol : class LDAPConnection

location: class pfd.LdapBean

LDAPConnection ld =new LDAPConnection();

^



Ldapbean.java:78: cannot resolve symbol

symbol : class LDAPConnection

location: class pfd.LdapBean

LDAPConnection ld =new LDAPConnection();

^



Ldapbean.java:85: cannot resolve symbol

symbol : class LDAPException

location: class pfd.LdapBean

} catch(LDAPException e ){

^



Ldapbean.java:101: cannot resolve symbol

symbol : class LDAPSearchResults

location: class pfd.LdapBean

LDAPSearchResults res =ld.search(base, ld.SCOPE_SUB,filter, attrs2,false );

^



Ldapbean.java:109: cannot resolve symbol

symbol : class LDAPEntry

location: class pfd.LdapBean

LDAPEntry entry =res.next();

^



Ldapbean.java:113: cannot resolve symbol

symbol : class LDAPReferralException

location: class pfd.LdapBean

}catch (LDAPReferralException e ){

^



Ldapbean.java:116: cannot resolve symbol

symbol : class LDAPException

location: class pfd.LdapBean

}catch (LDAPException e ){

^



Ldapbean.java:122: cannot resolve symbol

symbol : class LDAPException

location: class pfd.LdapBean

} catch (LDAPException e ){ rt= rt+e.toString(); }

^



Ldapbean.java:128: cannot resolve symbol

symbol : class LDAPException

location: class pfd.LdapBean

}catch (LDAPException e ){

^


*******************

LoginBean Errors

*******************


NovellBean.java:8: cannot resolve symbol

symbol : class DataBean

location: class pfd.NovellBean

public DataBean db;

^



NovellBean.java:9: cannot resolve symbol

symbol : class LdapBean

location: class pfd.NovellBean

public LdapBean lb;

^



NovellBean.java:20: cannot resolve symbol

symbol : class DataBean

location: class pfd.NovellBean

db = new DataBean();

^



NovellBean.java:21: cannot resolve symbol

symbol : class LdapBean

location: class pfd.NovellBean

lb = new LdapBean();

^



4 errors


*******************************************************


Can someone let me know what mistake I am doing...I would highly appreciate any help or comments??


Thanks.
   <<Less
About | Sitemap | Contact