Hi,
According to http://tools.ietf.org/html/rfc2798 ipa client and web ui extended 
with employeenumber field.

https://fedorahosted.org/freeipa/ticket/4165

Question is, that should we extend user with other fields which are in the RFC, 
(carLicense, departmentNumber, employeeType, etc) if we already touched this 
code?

Thanks
Adam
From c1c94bbfdf46ca9c9f09c70c892381192c85352b Mon Sep 17 00:00:00 2001
From: Adam Misnyovszki <amisn...@redhat.com>
Date: Fri, 21 Feb 2014 15:42:03 +0100
Subject: [PATCH] Extending user plugin with employeenumber field

According to http://tools.ietf.org/html/rfc2798 ipa client
and web ui extended with employeenumber field.

https://fedorahosted.org/freeipa/ticket/4165
---
 install/ui/src/freeipa/user.js | 3 ++-
 ipalib/plugins/user.py         | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js
index ecd82296e8427a5550546cb2ee63dcc28433e578..3ad9f4a06a7cd0bd6b88af9d17c2a4925396eb81 100644
--- a/install/ui/src/freeipa/user.js
+++ b/install/ui/src/freeipa/user.js
@@ -238,7 +238,8 @@ return {
                             name: 'manager',
                             other_entity: 'user',
                             other_field: 'uid'
-                        }
+                        },
+                        'employeenumber'
                     ]
                 },
                 {
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py
index edda273b24b6d92bb4360a2ff6ec9b05a2a630ca..4075a637eff9d99008f76223a130732726ae870c 100644
--- a/ipalib/plugins/user.py
+++ b/ipalib/plugins/user.py
@@ -397,6 +397,10 @@ class user(LDAPObject):
             cli_name='radius_username',
             label=_('RADIUS proxy username'),
         ),
+        Int('employeenumber?',
+            label=_('Employee ID'),
+            minvalue=1,
+        ),
     )
 
     def _normalize_and_validate_email(self, email, config=None):
-- 
1.8.5.3

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to