Protect Tag and Groups

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 15973
interpreted = N
texte = I studied the multigroupchecker. I get the include setup which will work for what I want and, I will set it up separately as you suggest. But part of the logic is still unclear to me.Part of multigroupchecker code is:[search db=Users.db&groupsword=ww&wogroupsdatarq=[uppercase][groups][/uppercase]&eq userdatarq=[uppercase][username][/uppercase]&eqpassdatarq=[uppercase][passw ord][/uppercase]][/search]You are taking the values from [password] and [username] and making them part of the search criteria, but what about [groups]. Where did the value come from inside [groups]. I must be missing part of the logic. It seems to me this searches for a .. whole word/word or .. match to the value entered in [groups] (plus user and pass), but where does that come from?If you wanted to protect an ADMIN page say... wouldn't you change [groups] to ADMIN and let the search function look to see if you wholeword/wordor match the string ADMIN as in ...groupsword=ww&wogroupsdatarq=ADMIN... This code in the include will limit the page to those in the ADMIN group ... right?? How would I use this same kind of search to look for and list all the groups to which a particular user is admitted? When you edit the groups someone is a part of they need only be separated by a space... correct? This shows them listed in whatever groups are listed each separated by spaces. ADMIN Group2 Group3. ------ Original Message ------>A good course of action for what you are describing is to leave the >[protect] tag and Multigroupchecker alone and write your own verification >system. The [protect ] tag is just shorthand for the following: >[include file=multigroupchecker&groups=]. So, create a webdna >[include] file that accesses your database and checks whatever information >you require. If you need to throw up the authenticate dialog, use the >[authenticate] tag. Look at the contents of the multigroup checker for a >good starting point. > >John. > >>I found a reference to this kind of problem in the archive for the list. >>... and it seems a solution. >> >> >> John Hill (johnh@smithmicro.com >> >>To add to my last email, just change the multigroup checker to look at >>your >>new user database file, if youd like, and you can still use the [protect] >>tag! >> >>John. >> >> >>Is it only possible to define groups which the [protect] tag will work >>with other than those in the Users.db. It seems to me the cgi is >>programed only to recognize that particular database. I would like to >>create another separate database if I can for use with this tag. Is that >>possible. If so how? >> >>RH Prouty >>bristol@interpage.net > > > John A. Hill, V.P. Marketing > Pacific Coast Software >eCommerce / Web Developer Tools > http://www.smithmicro.com > > > > Associated Messages, from the most recent to the oldest:

    
  1. Protect Tag and Groups (RH Prouty 1998)
  2. Re: Protect Tag and Groups (Grant Hulbert 1998)
  3. Re: Protect Tag and Groups (Kenneth Grome 1998)
  4. Protect Tag and Groups (RH Prouty 1998)
  5. Re: Fwd: Protect Tag and Groups (John Hill 1998)
  6. Fwd: Protect Tag and Groups (RH Prouty 1998)
I studied the multigroupchecker. I get the include setup which will work for what I want and, I will set it up separately as you suggest. But part of the logic is still unclear to me.Part of multigroupchecker code is:[search db=Users.db&groupsword=ww&wogroupsdatarq=[uppercase][groups][/uppercase]&eq userdatarq=[uppercase][username][/uppercase]&eqpassdatarq=[uppercase][passw ord][/uppercase]][/search]You are taking the values from [password] and [username] and making them part of the search criteria, but what about [groups]. Where did the value come from inside [groups]. I must be missing part of the logic. It seems to me this searches for a .. whole word/word or .. match to the value entered in [groups] (plus user and pass), but where does that come from?If you wanted to protect an ADMIN page say... wouldn't you change [groups] to ADMIN and let the search function look to see if you wholeword/wordor match the string ADMIN as in ...groupsword=ww&wogroupsdatarq=ADMIN... This code in the include will limit the page to those in the ADMIN group ... right?? How would I use this same kind of search to look for and list all the groups to which a particular user is admitted? When you edit the groups someone is a part of they need only be separated by a space... correct? This shows them listed in whatever groups are listed each separated by spaces. ADMIN Group2 Group3. ------ Original Message ------>A good course of action for what you are describing is to leave the >[protect] tag and Multigroupchecker alone and write your own verification >system. The [protect ] tag is just shorthand for the following: >[include file=multigroupchecker&groups=]. So, create a webdna >[include] file that accesses your database and checks whatever information >you require. If you need to throw up the authenticate dialog, use the >[authenticate] tag. Look at the contents of the multigroup checker for a >good starting point. > >John. > >>I found a reference to this kind of problem in the archive for the list. >>... and it seems a solution. >> >> >> John Hill (johnh@smithmicro.com >> >>To add to my last email, just change the multigroup checker to look at >>your >>new user database file, if youd like, and you can still use the [protect] >>tag! >> >>John. >> >> >>Is it only possible to define groups which the [protect] tag will work >>with other than those in the Users.db. It seems to me the cgi is >>programed only to recognize that particular database. I would like to >>create another separate database if I can for use with this tag. Is that >>possible. If so how? >> >>RH Prouty >>bristol@interpage.net > > > John A. Hill, V.P. Marketing > Pacific Coast Software >eCommerce / Web Developer Tools > http://www.smithmicro.com > > > > RH Prouty

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

problems with dos and tracert + webDNA (1998) Subtotal help (1997) Part Html part WebDNA (1997) WebDNA 5.1 and Mac OS X Server v10.3 - Working ??? (2003) Format all of a sudden doesn't work (1997) [quantity] - spoke too soon (1997) [showif] not working (2003) system crashes, event log (1997) # of real domains on 1 web server (1997) Bug Report, maybe (1997) Max Record length restated as maybe bug (1997) Suddenly can't see files... (2000) Appendfile memory usage (redux) (2003) Unable to view next 101-200 (1997) WebCat2b12 - nesting [tags] (1997) Re:2nd WebCatalog2 Feature Request (1996) possible, WebCat2.0 and checkboxes-restated (1997) Emailer compatibility..... (1998) looping table rows (1999) TCPConnect , can I get an example, pretty please. (2002)