Skip to content
Snippets Groups Projects
Commit 4c7b7fbd authored by sveseli's avatar sveseli
Browse files

final fixes for resolving globus online auth issue

parent 38985649
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ Release 0.8 (01/26/2016)
processed; for uploads system can detect files that had been processed
already; improved handling and reporting of processing errors)
- Source file checksum is calculated for rsync/gridftp plugins by default
- Resolved globus online user authorization delay issue
Release 0.7 (12/08/2015)
=============================
......
......@@ -44,13 +44,14 @@ class LdapLinuxPlatformUtility:
if not self.adminPassword:
raise ConfigurationError('LDAP password could not be found in %s file' % adminPasswordFile)
self.ldapClient = None
self.__configure()
def __configure(self):
cm = ConfigurationManager.getInstance()
configItems = cm.getConfigItems(LdapLinuxPlatformUtility.CONFIG_SECTION_NAME)
self.logger.debug('Got config items: %s' % configItems)
self.getLogger().debug('Got config items: %s' % configItems)
self.refreshAuthFilesCommand = cm.getConfigOption(LdapLinuxPlatformUtility.CONFIG_SECTION_NAME, LdapLinuxPlatformUtility.REFRESH_AUTH_FILES_COMMAND_KEY)
self.logger.debug('Refresh auth files command: %s' % self.refreshAuthFilesCommand)
self.getLogger().debug('Refresh auth files command: %s' % self.refreshAuthFilesCommand)
@classmethod
def getLogger(cls):
......@@ -325,7 +326,7 @@ class LdapLinuxPlatformUtility:
logger = self.getLogger()
try:
logger.debug('Refreshing auth files')
self.executeCommand(self.refreshAuthFilesCommand:)
self.executeCommand(self.refreshAuthFilesCommand)
except Exception, ex:
logger.warn('Failed to refresh auth files: %s' % (str(ex)))
......@@ -334,9 +335,9 @@ class LdapLinuxPlatformUtility:
if __name__ == '__main__':
utility = LdapLinuxPlatformUtility('ldaps://dmid-vm.xray.aps.anl.gov:636', 'uid=dmadmin,ou=People,o=aps.anl.gov,dc=aps,dc=anl,dc=gov', '/tmp/ldapPassword', groupDnFormat='cn=%s,ou=DM,ou=Group,o=aps.anl.gov,dc=aps,dc=anl,dc=gov', minGidNumber=66000)
print utility.getGroupInfo(u'id8i-test02')
utility.addLocalUserToGroup(u'sveseli', u'id8i-test02')
print utility.getGroupInfo(u'id8i-test02')
print utility.getGroupInfo(u's1id-test03')
#utility.addLocalUserToGroup(u'sveseli', u'id8i-test02')
#print utility.getGroupInfo(u'id8i-test02')
#utility.deleteLocalUserFromGroup(u'sveseli', u'id8i-test02')
#print utility.getGroupInfo(u'id8i-test02')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment