Let me sum up :

Midgard 1.4-beta3/SiteGroups=0.3
2 'admin' username in SG0 and SG4, all others in SG0

log in as 'admin*'    ( admin site shows admin as root for SG0)

create a new group OK : id = 5 (no members are listed after creation)

tried to add members to group 5  (failure on all users rc=0)

if u cannot reproduce the problem, i might have a disprepancy in my
database.

I attach you extracts of my tables below.

Anyway consider this low priority since I stopped using sitegroups for now.



-----Original Message-----
From: Emiliano [mailto:[EMAIL PROTECTED]]
Sent: jeudi 8 juin 2000 17:19
To: [EMAIL PROTECTED]
Subject: RE: [midgard] mgd_create_member problem



>   U put the finger on it !
>
> In fact, when i look in the database table 'persons', I have 2 'admin'
> usernames, one in SG0 and one in SG4.

That's fine.

> When I log in using 'admin*', I am in SG0, which is indicated in the main
> admin page. All users i tried to add are in SG0, so it should have worked
> but the function terminated in error. For exemple i was unable to add
> midgard administrator of SG0 in the new group. The new group was in SG0.
Is
> it possible the check on SG and username be confused by the same username
?

I don't quite follow what is outlined above.

To make a user member of a group, both the user and the group must be in
the current sitegroup.

A username must be unique within one sitegroup. There's no confusion about
that; duplicate names are out. You can have the same username in separate
sitegroups though.

> In a second part, I insist on something that seems important to me, that
> functions indicate a more detailed status in the return code. On the same
> way, the default admin site is too silent about errors...  know it takes
> time to setup all this and this is programmer's nightmare :) but it saves
> lots of time during use and debug ;p

I'm working on it.

Emile


--
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]

id      username        password        firstname       lastname        birthdate      
 street  postcode        city    homephone       handphone       workphone       
homepage        email   extra   img     info    topic   subtopic        department     
 office  created creator pgpkey  sitegroup

1       admin   **xxxxxxxx      Midgard Administrator   0000-00-00                     
                                 http://www.midgard-project.org/ 
[EMAIL PROTECTED]  Default administrator account for Midgard       0       
homepage,email,extra    0       0       0       0       0000-00-00 00:00:00     0      
         0
10      guillaume       xxxxxxxxxxxxx   Guillaume       xxxxxxxxxxx     0000-00-00     
                                                                         0             
  0       0       0       0       2000-04-21 16:34:21     1               0
14      admin   xxxxxxxxxxxxx   vmf     admin   NULL                                   
                                         0               0       0       0       0     
  0000-00-00 00:00:00     0               4


id      name    official        street  postcode        city    homepage        email  
 extra   owner   sitegroup

1       VMUC Admins     VMUC Corp. Web Site Administrators      Imaginary Street 13    
 123456  Nowhere                 The Group that handles administration of VMUC 
Corp.\nsite's (the Midgard Example Site) maintenance.     0       0
4       VMF Admins      VMF Admins                                                     
 4       4
5       toto    totogroup                                                       0      
 0

id      uid     gid     extra   info    sitegroup
1       1       0                       0
2       1       2                       0
3       2       2                       0
4       3       2                       0
5       1       3                       0
6       2       3                       0
8       5       3                       0
9       3       3                       0
10      6       3                       0
11      11      3                       0
12      7       3                       0
13      12      3                       0
14      9       3                       0
15      10      3                       0
16      8       3                       0
17      14      4               owner   4

--
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]

Reply via email to