Rename 'gn' to 'givenName'

This commit is contained in:
kmccarth@redhat.com
2007-08-02 15:01:59 -07:00
parent abdc56fb3a
commit 88ab86fa37
3 changed files with 3 additions and 5 deletions

View File

@@ -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:

View File

@@ -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)

View File

@@ -146,7 +146,7 @@ def get_add_schema ():
fields.append(field1)
field1 = {
"name": "gn" ,
"name": "givenName" ,
"label": "First name:",
"type": "text",
"validator": "string",