Hi,
I'm having trouble with "ns_perm checkpass". If I call it directly I
get an error:
unknown command "checkpass": should be adduser, addgroup, allowuser,
denyuser, allowgroup, or denygroup
while executing
"ns_perm checkpass $name $pass"
Yet if I call "ns_passwordcheck" then any and all user/password
combinations return 1 for true.
I looked in /usr/local/aolserver/modules/tcl/nsperm/compat.tcl at
"ns_passwordcheck" and it seems that the error I see when calling
"ns_perm checkpass" is just caught here and this causes
"ns_passwordcheck" to always return 1. The docs say "ns_passwordcheck"
returns 1 if the user/password is legitimate. Seems like 2 things are
wrong here.
1) "ns_perm checkpass" is missing and I don't know why. Do I need to
load a module other than nsperms to get this proc?
2) The catch in compat.tcl "ns_passwordcheck" seems like it should
return 0 on error (when the catch return is 1) since this means the
user/pass is invalid. Or some unrelated error like "ns_perm checkpass"
not existing;(
And return 1 on no error (when the catch return is 0).
Here's what is in my /usr/local/aolserver/modules/tcl/nsperm/compat.tcl
:
proc ns_passwordcheck { user password } {
set ret [catch {ns_perm checkpass $user $password} err]
if {$ret == 0} {
return 0
} else {
return 1
}
}
It returns the same as the catch. So if "ns_perm checkpass" throws an
exception here, then the return is 1, implying the user/pass is valid.
Or am interpreting the docs wrong here?
Am I nuts or this giving anyone else problems?!
btw, I'm on:
AOLserver/4.0 (aolserver4_0)
CVS Tag: $Name: aolserver_v4_r0_beta_4 $
Built: Mar 24 2003 at 11:53:39
Tcl version: 8.4
Platform: linux
thanks,
t
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.