How do I enable a user with @ADMIN=0 to add a new user ? (OpenInsight Specific)
At 10 MAR 2000 12:27:54PM Douglas M. Johnson wrote:
I am trying to enable a user with @ADMIN=0 to add subsequent users with @ADMIN=0. the Create_User subroutine returns an error when I try to do this programatically, i.e.
UserID=Get_Property(@WINDOW,"ID")
Password1=Get_Property(@WINDOW:".PASSWORD1","TEXT")
Password2=Get_Property(@WINDOW:".PASSWORD2","TEXT")
Level=Get_Property(@WINDOW:".SECURITY","VALUE")
Set_Status(0)
Create_User(UserID,Password1,Level,Overwrite)
If Get_Status() then
Msg(@WINDOW,"The attempt to set the password failed")End
I tried setting @ADMIN=2', yet this variable is not assignable, the same with @USERNAME.
Any and all ideas will be appreciated. I am new to this discussion group, and look forward to future discussions with all of you.
At 10 MAR 2000 12:37PM [email protected] wrote:
Douglas,
I dont see where you are setting Override .. we always set it to 1
Also be sure that you have at least 6 characters in your pass word
[email protected] onmouseover=window.status=imagine … opinions that seem to scare;return(true)"
David Tod Sigafoos ~ SigSolutions
cell: 503-341-2983
At 13 MAR 2000 05:19PM Doug Johnson wrote:
David,
I ommitted the line of code:
Overwrite=1
So, I am setting the Ovewrite flag to 1, yet the Create_User function still errors. Also, I did enter passwords greater than 6 characters. I am still not able to allow Users with Level 0 to add a new user with level 0.
Overwrite=1
UserID=Get_Property(@WINDOW,"ID"); * Data Entry
Password1=Get_Property(@WINDOW:".PASSWORD1","TEXT"); * Data Entry
Level=Get_Property(@WINDOW:".SECURITY","VALUE"); * 0, 1, or 2
Set_Status(0)
Create_User(UserID,Password1,Level,Overwrite)
If Get_Status() then
Msg(@WINDOW,"The attempt to set the password failed")
End
Thanks for your help !
At 14 MAR 2000 12:30PM [email protected] wrote:
Douglas,
What *level* is the user when running the program and what *level* is the new users?
I force all users to *level* 1 with overwrite. I check that there are at least 6 characters and that there are no spaces.
Try creating a user in a simple subroutine. 'dsig' with password 'simple' 1 and 1. Does this work?
As for the OI *levels* i would ignore this as much as possible .. their *security* is laughable at best. You will have to implement this on your own if you want anything robust. (oh i'm sure that i might get hit for this but that's life
![]()
So .. did the test work?
[email protected] onmouseover=window.status=imagine … opinions that seem to scare;return(true)"
David Tod Sigafoos ~ SigSolutions
cell: 503-341-2983