Index: /main/waeup.kofa/trunk/src/waeup/kofa/authentication.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/authentication.py	(revision 8755)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/authentication.py	(revision 8756)
@@ -22,4 +22,5 @@
 from zope.component import getUtility, getUtilitiesFor
 from zope.interface import Interface
+from zope.schema import getFields
 from zope.securitypolicy.interfaces import (
     IPrincipalRoleMap, IPrincipalRoleManager)
@@ -34,5 +35,5 @@
 from waeup.kofa.interfaces import (ILocalRoleSetEvent,
     IUserAccount, IAuthPluginUtility, IPasswordValidator,
-    IKofaPrincipal, IKofaPrincipalInfo)
+    IKofaPrincipal, IKofaPrincipalInfo, IKofaPluggable)
 
 def setup_authentication(pau):
@@ -150,5 +151,5 @@
 
     def __init__(self, name, password, title=None, description=None,
-                 email=None, phone=None, roles = []):
+                 email=None, phone=None, public_name=None, roles = []):
         self.name = name
         if title is None:
@@ -158,4 +159,5 @@
         self.email = email
         self.phone = phone
+        self.public_name = public_name
         self.setPassword(password)
         self.setSiteRolesForPrincipal(roles)
@@ -356,2 +358,36 @@
                 obj, local_role, user_name, granted=False))
     return
+
+class UsersPlugin(grok.GlobalUtility):
+    """A plugin that updates users.
+    """
+
+    grok.implements(IKofaPluggable)
+    grok.name('users')
+
+    deprecated_attributes = []
+
+    def setup(self, site, name, logger):
+        return
+
+    def update(self, site, name, logger):
+        users = site['users']
+        items = getFields(IUserAccount).items()
+        for user in users.values():
+            # Add new attributes
+            for i in items:
+                if not hasattr(user,i[0]):
+                    setattr(user,i[0],i[1].missing_value)
+                    logger.info(
+                        'UsersPlugin: %s attribute %s added.' % (
+                        user.name,i[0]))
+            # Remove deprecated attributes
+            for i in self.deprecated_attributes:
+                try:
+                    delattr(user,i)
+                    logger.info(
+                        'UsersPlugin: %s attribute %s deleted.' % (
+                        user.name,i))
+                except AttributeError:
+                    pass
+        return
Index: /main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py	(revision 8755)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py	(revision 8756)
@@ -423,4 +423,9 @@
         required = False,)
 
+    public_name = schema.TextLine(
+        title = _(u'Public Name'),
+        description = u'This name appears on student pages.',
+        required = False,)
+
     description = schema.Text(
         title = _(u'Description/Notice'),
Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py	(revision 8755)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py	(revision 8756)
@@ -40,4 +40,6 @@
     grok.implements(IUserAccount)
 
+    public_name = None
+
     @property
     def name(self):
