#4972 check for existence of private group is done even if UPG definition is disabled
Closed: fixed 4 years ago by rcritten. Opened 9 years ago by pvoborni.

The check is not done only if --noprivate option is supplied in user-add. But if "UPG definition" is disabled providing the option should not be necessary.

[root@test pvoborni]# ipa-managed-entries disable -e "UPG Definition"
Directory Manager password:

Disabling Plugin
[root@test pvoborni]# systemctl restart dirsrv
Failed to restart dirsrv.service: Unit dirsrv.service failed to load: No such file or directory.
[root@test pvoborni]# systemctl restart dirsrv@EXAMPLE-COM.service

[root@test pvoborni]# ipa group-mod ipausers --posix
-------------------------
Modified group "ipausers"
-------------------------
  Group name: ipausers
  Description: Default group for all users
  GID: 1351600001
[root@test pvoborni]# 
[root@test pvoborni]# ipa user-add fbar --first=foo --last=bar
-----------------
Added user "fbar"
-----------------
  User login: fbar
  First name: foo
  Last name: bar
  Full name: foo bar
  Display name: foo bar
  Initials: fb
  Home directory: /home/fbar
  GECOS: foo bar
  Login shell: /bin/sh
  Kerberos principal: fbar@EXAMPLE.com
  Email address: fbar@example.com
  UID: 1351600003
  GID: 1351600001
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False
[root@test pvoborni]# ipa group-find --private
----------------
0 groups matched
----------------
----------------------------
Number of entries returned 0
----------------------------

[root@test pvoborni]# ipa group-add testobject
------------------------
Added group "testobject"
------------------------
  Group name: testobject
  GID: 1351600004

[root@test pvoborni]# ipa user-add testobject --first=test --last=object
ipa: ERROR: Unable to create private group. A group 'testobject' already exists.
[root@test pvoborni]# ipa user-show testobject
ipa: ERROR: testobject: user not found

[root@test pvoborni]# ipa user-add testobject --first=test --last=object --noprivate
-----------------------
Added user "testobject"
-----------------------
  User login: testobject
  First name: test
  Last name: object
  Full name: test object
  Display name: test object
  Initials: to
  Home directory: /home/testobject
  GECOS: test object
  Login shell: /bin/sh
  Kerberos principal: testobject@EXAMPLE.com
  Email address: testobject@example.com
  UID: 1351600005
  GID: 1351600001
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False

Metadata Update from @pvoborni:
- Issue assigned to tkrizek
- Issue set to the milestone: FreeIPA 4.5 backlog

7 years ago

Metadata Update from @tkrizek:
- Assignee reset

5 years ago

Metadata Update from @frenaud:
- Issue assigned to frenaud

4 years ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3739 (was: 0)
- Issue close_status updated to: None

4 years ago

master:

  • b2a2d7f ipa user_add: do not check group if UPG is disabled
  • 387ee6e ipatests: add XMLRPC test for user-add when UPG plugin is disabled

ipa-4-8:

  • 624144d ipa user_add: do not check group if UPG is disabled
  • 482ee74 ipatests: add XMLRPC test for user-add when UPG plugin is disabled

ipa-4-7:

  • ee0b0f6 ipa user_add: do not check group if UPG is disabled
  • 6f512b0 ipatests: add XMLRPC test for user-add when UPG plugin is disabled

ipa-4-6:

  • 0b574c1 ipa user_add: do not check group if UPG is disabled
  • 317c111 ipatests: add XMLRPC test for user-add when UPG plugin is disabled

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata