Hi,

Thanks. I followed your instructions and I think I'm getting close, but I'm 
having another basic Java problem. If I use a package name other 
than "net.sf.basedb.core.authentication", I get "cannot find symbol" errors. 
If I "import net.sf.basedb.core.authentication.*", that conflicts with a 
function from other libraries I'm importing for LDAP. If I compile with the 
package name "net.sf.basedb.core.authentication", I get this error when I try 
to login to Base:

"The authentication driver 'LDAPAuthenticator' could not be loaded. The error 
message is: LDAPAuthenticator (wrong name: 
net/sf/basedb/core/authentication/LDAPAuthenticator)"

- Paulo

On Wednesday 13 August 2008 13:17, Nicklas Nordborg wrote:
> Paulo Almeida wrote:
> > Hi,
> >
> > Sorry, I sent an e-mail earlier but I realized I couldn't compile the
> > Authenticator because I was using a binary release instead of the source.
> > Now it compiles, but do I have to compile all of Base to make use of the
> > authentication plugin?
>
> You shouldn't need the BASE source code to compile you class. You just
> need to reference the BASE2Core.jar file (and possible some other BASE
> jar files) on your class path. Those JAR files are found in the
> <basedir>/www/WEB-INF/lib directory.
>
> If you are using Ant for compilation and building it should be possible
> for you to organize code and stuff in the same structure as described
> in:
> http://base.thep.lu.se/chrome/site/latest/html/developerdoc/plugin_develope
>r/plugin_developer.organize.html
>http://compbio.igc.gulbenkian.pt/
> Ignore any information about the "plug-in installation wizard" and
> MANIFEST.MF file since that is not applicable for this type of plug-in.
>
> I also recommend that you put your code in a package that is not
> "net.sf.basedb.core.authentication".
>
> After you have compiled your code you should put the JAR file together
> with the other JAR files in the <basedir>/www/WEB-INF/lib directory.
> Don't forget to also put any JAR files you require for the LDAP
> authentication in the same directory. Then, restart your BASE server and
> check if it is working.
>
> /Nicklas
>
> > Thanks,
> > Paulo
> >
> > On Monday 11 August 2008 21:20, Nicklas Nordborg wrote:
> >>> Hi,
> >>>
> >>> Is there a way to integrate Base authentication with an existing LDAP
> >>> or Kerberos server, or a different centralized solution? If not, are
> >>> there plans
> >>> for something like that? Do you think it would be complex to go to the
> >>> source
> >>> and implement an LDAP lookup function at login? (I am thinking it would
> >>> be a
> >>> matter of doing the lookup and if it is successful, everything proceeds
> >>> as if
> >>> it were a local user; the only problem may be that you have to create
> >>> the user locally if he does not exist).
> >>
> >> Yes, this should be possible. BASE includes a plug-in mechanism for
> >> authentication. Documentation is available at
> >> http://base.thep.lu.se/chrome/site/latest/html/developerdoc/plugin_devel
> >>ope r/plugin_developer.other.html#plugin_developer.other.authentication
> >>
> >> /Nicklas
> >>
> >>
> >>
> >> ------------------------------------------------------------------------
> >>- This SF.Net email is sponsored by the Moblin Your Move Developer's
> >> challenge Build the coolest Linux based applications with Moblin SDK &
> >> win great prizes Grand prize is a trip for two to an Open Source event
> >> anywhere in the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> The BASE general discussion mailing list
> >> basedb-users@lists.sourceforge.net
> >> unsubscribe: send a mail with subject "unsubscribe" to
> >> [EMAIL PROTECTED]
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge Build the coolest Linux based applications with Moblin SDK &
> > win great prizes Grand prize is a trip for two to an Open Source event
> > anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > The BASE general discussion mailing list
> > basedb-users@lists.sourceforge.net
> > unsubscribe: send a mail with subject "unsubscribe" to
> > [EMAIL PROTECTED]
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> The BASE general discussion mailing list
> basedb-users@lists.sourceforge.net
> unsubscribe: send a mail with subject "unsubscribe" to
> [EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
The BASE general discussion mailing list
basedb-users@lists.sourceforge.net
unsubscribe: send a mail with subject "unsubscribe" to
[EMAIL PROTECTED]

Reply via email to