mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Rename 'gn' to 'givenName'
This commit is contained in:
@@ -60,7 +60,7 @@ def main():
|
||||
if len(args) != 2:
|
||||
usage()
|
||||
|
||||
user['gn'] = options.gn
|
||||
user['givenName'] = options.gn
|
||||
user['sn'] = options.sn
|
||||
user['uid'] = args[1]
|
||||
if options.gecos:
|
||||
|
||||
@@ -77,9 +77,7 @@ def add_user(user):
|
||||
# FIXME: What is the default group for users?
|
||||
user['gidNumber'] ='501'
|
||||
user['krbPrincipalName'] = "%s@%s" % (user['uid'], realm)
|
||||
user['cn'] = "%s %s" % (user['gn'], user['sn'])
|
||||
if user.get('gn'):
|
||||
del user['gn']
|
||||
user['cn'] = "%s %s" % (user['givenName'], user['sn'])
|
||||
|
||||
try:
|
||||
result = server.add_user(user)
|
||||
|
||||
@@ -146,7 +146,7 @@ def get_add_schema ():
|
||||
fields.append(field1)
|
||||
|
||||
field1 = {
|
||||
"name": "gn" ,
|
||||
"name": "givenName" ,
|
||||
"label": "First name:",
|
||||
"type": "text",
|
||||
"validator": "string",
|
||||
|
||||
Reference in New Issue
Block a user