external auth

external auth

by Bastl Do -
Number of replies: 1
Hi

Im developing a quite komplex J2EE App and want to link in moodle using the external auth.

I have configured external auth with correct settings, but absolutely nothing happens: i can log in as admin or guest, add new accounts, change passwords etc, but my external db stays untouched.

Same other way around: i cant login with users i create in my own app.

My app and moodle use mysql, both work stable. My app uses a User table with columns login and password in MD5 format.

I have one suspect:

We generate the MD5 hash by this:
String hashedPassword = Util.createPasswordHash("MD5", Util.BASE64_ENCODING, null, null, password);

You can find the apidoc og this method here:
http://docs.jboss.org/jbossas/javadoc/4.0.4/security/org/jboss/security/Util.html#createPasswordHash(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)

Is that compatible to the MD5 format moodle expects? (i hope someone here speaks "java") ...

While that is my suspect, i dont know how to debug, get log messages now.

Some versions (im using Ubuntu Dapper)

mysqld 5.0.22-Debian_0ubuntu6.06.2-log
moodle 1.5.3+20060108-1ubuntu1.1
PHP 5.1.2 (cli) (built: Oct 10 2006 16:27:39)

TIA,

Sebastian.
Average of ratings: -
In reply to Bastl Do

Re: external auth

by Bastl Do -
as so often, i asked just before i found the answer:

my guess was correct: using base16 (aka hex) encoding in my JEE App, it works as it should.

bye, Sebastian