Contents
Web UI
Basic user and group management can be performed at https://identity.mageia.org/. After logging in, click the Account Admin link in the toolbar at the top of the screen, enter the user's userid, click the user's link, then choose Groups and perform the necessary action.
Adding user to group
In order to add an existing user to an existing group into the infrastructure, create a small file addusertogroup.ldif with the following contents:
dn: cn=<mga-groupname>,ou=Group,dc=mageia,dc=org changetype: modify add: member member: uid=<user-login>,ou=People,dc=mageia,dc=org
where <mga-groupname> is the group you want to add the user to, and <user-login> is the login of the user.
Then run (using your login as uid) on a host on Mageia infrastructure:
[root@duvel ~]# ldapadd -H ldaps://ldap.mageia.org -D uid=$USER,ou=People,dc=mageia,dc=org -W -f addusertogroup.ldif
Removing user from group
In order to remove an existing user from an existing group, create a small file remove.ldif with the following contents:
dn: cn=<mga-groupname>,ou=Group,dc=mageia,dc=org changetype: modify delete: member member: uid=<user-login>,ou=People,dc=mageia,dc=org
where <mga-groupname> is the group from which you want to remove the user, and <user-login> is the login of the user.
Then run (using your login as uid) on a host on Mageia infrastructure:
[root@duvel ~]# ldapmodify -H ldaps://ldap.mageia.org -D uid=$USER,ou=People,dc=mageia,dc=org -W -f remove.ldif
Removing owner of group
Before removing an owner of a group, ensure that another valid & active owner will remain. Create a small file removeowner.ldif with the following contents:
dn: cn=<mga-groupname>,ou=Group,dc=mageia,dc=org changetype: modify delete: owner owner: uid=<user-login>,ou=People,dc=mageia,dc=org
where <mga-groupname> is the group from which you want to remove the user, and <user-login> is the login of the user.
Then run (using your login as uid) on a host on Mageia infrastructure:
[root@duvel ~]# ldapmodify -H ldaps://ldap.mageia.org -D uid=$USER,ou=People,dc=mageia,dc=org -W -f removeowner.ldif
See also
- Active groups
- LDAP Groups needed for different roles