Page 1 of 1
Howto delete a Group ?
Posted: Thu Nov 16, 2006 5:59 am
by brockz
Hello ,
i want to create a group in sac there is only 1 group created yet. But when i want to create a new one with the name "Verwaltung" i get a Error ....
"Couldnt not create Group with a Name that always exists"
But i have no User or Group with the Name "Verwaltung" !
What can i do ? Im searched in the Admin Guide to delete Group but cannot find a command. How can i fix my Problem ?
Posted: Thu Nov 16, 2006 10:43 pm
by kanderson
go to a command line and try:
omsearch -s|grep -i <groupname>
if it exists, type:
omdelent -e <groupname>
My guess is that it's there somewhere... :)
Posted: Thu Sep 13, 2007 9:11 am
by jmason1182
I tried omsearch -s | grep Harris\ Acoustics and it returned my group that was supposedly created.... in fact it returned:
Code: Select all
S=Acoustics/OU1=midsl052/CN=Harris Acoustics/INTERNET-ADDR="Harris Acoustics" <Harris.Acoustics@masonco.local>/ENTRY-TYPE=4/DL-POLICY=0
The problem is, if I do an omdelent -e "Harris Acoustics" or if I do omdelent -e "Acoustics" it says:
Code: Select all
[root@midsl052 ~]# omdelent -e 'Harris Acoustics'
Harris Acoustics
[OM 16073] Unknown attribute specified.
Attribute : Harris
[root@midsl052 ~]# omdelent -e 'Acoustics'
Acoustics
[OM 16073] Unknown attribute specified.
Attribute : Acoustics
So now what!? Should I manipulate the directory directly? Or should I explore omdelent more?
I can't get to the group in the SAC.... so command-line is the only way I'll be able to remove the group!
Posted: Thu Sep 13, 2007 9:40 am
by adhodgson
Hi,
I think I did this last time using the " symbol, and not the ' symbol.
Andrew.
Posted: Thu Sep 13, 2007 10:59 am
by kanderson
Use
omdelent =e "S=Acoustics/OU1=midsl052"
And you should be fine.
You need to at least indicate what Acoustics is, in this case, it's a surname in the directory.
Kev.
Posted: Thu Sep 13, 2007 12:38 pm
by jmason1182
And here's another case where I solve my own problem:
First, find it in the ldap directory using omldapsearch
Code: Select all
[root@midsl052 ~]# omldapsearch "cn=Harris Acoustics"
Secondly, delete it, using your mail administrator name and password (cn... use omldapsearch if you don't know it)
Code: Select all
[root@midsl052 ~]# omldapdelete "cn=Harris Acoustics" -D "cn=Administrator, o=Scalix" -w <mypasswordhere>
That removed the group.