I just managed to get most of sitegroups working - here are some of the
notes.. for general info - if anyone want to test it out...
- the download page for beta4 should really link to the beta3 release notes,
especially as alot of important sitegroups info are in there.....
Installation was not too bad, however I did get very confused cause I had not
read the beta3 notes - so knowing that I had to login with admin* and password
was not obvious...
I did have a lot of difficulty trying to recompile later without sitegroups -
Anyway I will probably do that on a different system and transfer over the
result to this machine..
The only hickups where really that debian puts some of it's libraries in
different places (eg. /usr/include/postgresql for php3's pgsql extension etc.)
- not sure if this is a php issue rather than midgards... (and for some reason
apxs is sent -W-l/usr/local/lib or something - apxs doesnt have that option...
other than that the compiles where very smooth..
anyway here are the notes I made testing sitegroups - they are more example
based than the release notes..
sitegroups
working it through!
1. create a new sitegroup eg. test (in mysql)
insert into sitegroup (name) values ('testing');
login into the admin site as admin*testing
you get the message saying you are logged in as testing with sitegroup
testing
create a person - eg. Someusername
create a useraccount user@testing <-- use the @ sign in the username!!!
password test?
create a group eg. testingadmin
- add the user user@testing to it
(modify it and change the owner group to be it'self..
create a host eg. localhost:8101/testsg -
owner = testingadmin
root = admin root
style = midgard admin
create another site - eg. localhost:80/testsite
owner = testingadmin
root = new page
style = new style
type in the urlbox localhost:8101/testsg
- you will be still in as admin*testing -
use the relog box and pick user@testing
login.. using user@testing
NOTE: the user "user@testing" will not be able to
create
1. a new host!
2. a new style!
3. basically anything top level
- they will be able to create elements withing the new site...
Now go back to localhost:8101/admin
log back in as admin*testing
create a new user called [EMAIL PROTECTED]
go to mysql prompt (as it is the only way to do it at present!)
log in, etc.the type
insert into member(uid,gid,sitegroup) values (A,0,B);
where A=the user id for admin@testing
where B= the sitegroup id for 'testing';
theoritical this should have made an administrator of sitegroup B
- it doesnt.....
other thing to note:
usernames - with @ in have to be defined in the username,
THE USERNAME field is a max of about 20 characters - so if you store @ sign
sitegroups you probably need to do an 'alter table'!!!!
however you can use xxxx+sitegroup to login, it will look for a user xxxx
with site group = the same as logining in with the @ but the username does not
need to include @sitename
regards
alan
--
Technical Director
Linux Center (HK) Ltd.
www.hklc.com
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]