[Samba] srvtools (Usrmgr.exe) : strange problem

2005-03-17 Thread Olivier Rochefort
Hello everybody. I have noted a strange problem when using Usrmgr.exe 
(from srvtools). The problem arise when a net groupmap is done on a 
group for which a user exist with the same name that the specified 
unixgroup. For example, lets say that I have the following UNIX user and 
group create on my Samba server :

joe (in /etc/group)
joe (in /etc/passwd)
Now I create the following map :
net groupmap add ntgroup=Joe Smith unixgroup=joe type=domain
Now if I start Usrmgr.exe and I check the user joe I can see the group 
Joe Smith and others groups. If I try to remove the group Joe Smith 
then Usrmgr.exe popup a message Access denied. What is strange is that 
if I check /etc/group I can see that the command has succeed because 
user joe is no longer member of the group joe. Still that if I look back 
to Usrmgr.exe, user joe is still a member of group Joe Smith even if 
it's not the case in /etc/group. Anyone can bring some clarifications 
about that?

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] srvtools : only able to assign primary group

2005-03-16 Thread Olivier Rochefort
Hello to all. I'm testing Samba as a domain controller (I'm using 
tdbsam). All is working perfectly so far, but I have an issue when using 
srvtools to manage my users. I'm only able to assign the primary group 
to an user account. All additionnal groups added to the member of: 
section are ignored (I press OK and the srvtools don't complain or 
anything, but when I come back to see groups assignment they are all 
gone to the exception of the group that I have set as the primary group).
The only way that I have find to make an user member of more than one 
group is to create additional group maps directly on the server with the 
command net groupmap. For example :

- With srvtools I set the primary group for the user Joe to the group 
Sales department (if I try to add any others groups they are simply 
ignored)
- On the server I execute the following command : net groupmap add 
ntgroup=User joe unixgroup=joe
- Now I go back to srvtools and I can effectively see the two assigned 
groups in the member of: section

However, at this point a new problem arise with srvtools. If srvtools 
see than an user is member of more than one group, then I'm no longer to 
remove group(s) for this user (srvtools popup an Access is denied 
error message when I'm validating the group removal).
Is that a known issue? Is me better to dump the use of srvtools (I have 
to admit that I like to use srvtools to manage my users and groups).

PS - srvtools work perfectly to add and remove users and groups (I only 
have a problem with the issue mentionned). I'm using Fedora Core 3 and 
samba-3.0.10-1 (installed via yum). Thanks for any help.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba