Added DeleteJobs in SlabDriver.
[sfa.git] / sfa / senslab / LDAPapi.py
index 87c1775..ec3cf1b 100644 (file)
@@ -18,6 +18,14 @@ class LDAPapi :
        
                self.auth=Auth()
                gid=authinfo.get_gid_object()
+                self.ldapdictlist = ['type',
+                                'pkey',
+                                'uid',
+                               'serial',
+                               'authority',
+                               'peer_authority',
+                               'pointer' ,
+                               'hrn']
        
        def ldapFind(self, record_filter = None, columns=None):
 
@@ -74,10 +82,11 @@ class LDAPapi :
 
                        results.append(  {      
                                'type': 'user',
-                                'pkey': ldapentry[1]['sshPublicKey'][0].
-#                              'email': ldapentry[1]['mail'][0],
-#                              'first_name': ldapentry[1]['givenName'][0],
-#                              'last_name': ldapentry[1]['sn'][0],
+                                'pkey': ldapentry[1]['sshPublicKey'][0],
+                                'uid': ldapentry[1]['uid'][0],
+                               'email': ldapentry[1]['mail'][0],
+                               'first_name': ldapentry[1]['givenName'][0],
+                               'last_name': ldapentry[1]['sn'][0],
 #                              'phone': 'none',
                                'serial': 'none',
                                'authority': self.authname,