summaryrefslogtreecommitdiffstats
path: root/ipa-server/xmlrpc-server/attrs.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-10-22 17:06:52 -0400
committerRob Crittenden <rcritten@redhat.com>2007-10-22 17:06:52 -0400
commit04636b8ae7b759291fe0c49991b3df760d6ad4c2 (patch)
tree5ef85e2b057c2dc94c5744492ddd83f70efa3a2b /ipa-server/xmlrpc-server/attrs.py
parenta47f893957a2b07b87f26429183f61d781a257fc (diff)
downloadfreeipa-04636b8ae7b759291fe0c49991b3df760d6ad4c2.tar.gz
freeipa-04636b8ae7b759291fe0c49991b3df760d6ad4c2.tar.xz
freeipa-04636b8ae7b759291fe0c49991b3df760d6ad4c2.zip
Add an LDAP attribute -> label mapping function to XML-RPC layer
Move some ACI functions around in preparation for cli delegation
Diffstat (limited to 'ipa-server/xmlrpc-server/attrs.py')
-rw-r--r--ipa-server/xmlrpc-server/attrs.py53
1 files changed, 53 insertions, 0 deletions
diff --git a/ipa-server/xmlrpc-server/attrs.py b/ipa-server/xmlrpc-server/attrs.py
new file mode 100644
index 000000000..239b8d8f5
--- /dev/null
+++ b/ipa-server/xmlrpc-server/attrs.py
@@ -0,0 +1,53 @@
+# Authors: Rob Crittenden <rcritten@redhat.com>
+#
+# Copyright (C) 2007 Red Hat
+# see file 'COPYING' for use and warranty information
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; version 2 only
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+attr_label_list = {
+ "givenname":"Given Name",
+ "sn":"Family Name",
+ "cn":"Common Name",
+ "title":"Title",
+ "displayname":"Display Name",
+ "initials":"Initials",
+ "uid":"Login",
+ "userpassword":"Password",
+ "uidnumber":"UID",
+ "gidnumber":"GID",
+ "homedirectory":"Home Directory",
+ "loginshell":"Login Shell",
+ "gecos":"GECOS",
+ "mail":"E-mail Address",
+ "telephonenumber":"Work Number",
+ "facsimiletelephonenumber":"Fax Number",
+ "mobile":"Cell Number",
+ "homephone":"Home Number",
+ "street":"Street Address",
+ "l":"City",
+ "st":"State",
+ "postalcode":"ZIP",
+ "ou":"Org Unit",
+ "businesscategory":"Tags",
+ "description":"Description",
+ "employeetype":"Employee Type",
+ "manager":"Manager",
+ "roomnumber":"Room Number",
+ "secretary":"Secretary",
+ "carlicense":"Car License",
+ "labelduri":"Home Page",
+ "nsaccountlock":"Account Status"
+}