Randy Moore <[EMAIL PROTECTED]> wrote: > If it would help, I'd be more than happy to give you access to my > development server (he says grinning and trying not to beg).
I'll see... private email is better for this. > (gdb) p row[0] > $2 = 0x0 That's the problem. > This is strange, in some of my earlier testing I had put in some extra > logging to show the contents of row[0] and test full NULL in > password_pair. At that point, I thought both were OK. And if you look around line 350, there's a check: if row[0] is NULL, then stop. So there's some weird memory corruption going on here. > Hmm, I don't think I understand you here. If I take 'sql' out of the > authenticate section, radiusd fails to start and I get the following error: > /usr/local/freeradius-snapshot-20020125/etc/raddb/users[78]: Parse error > (check) for entry DEFAULT: Unknown value Sql for attribute Auth-Type Ok. There as a discussion on the devel list earlier about similar topics. The idea is that the SQL module should grab the password (or crypt-password) from the database during the 'authorize' section, and add it to the config items. Then, the pap/chap/whatever authentication could be done by another module. This would allow MS-CHAP authentication when using SQL.... But the code isn't finished yet. > So, I tried putting in an empty 'chap' block in the modules section. That > worked but didn't change the symptoms of the crashes. Do I need something > more in the modules block? You need to list 'sql' in the authorize section, and ensure that the password is added to request->config_items. This may take source code patches. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
