diff options
Diffstat (limited to 'index.py')
-rwxr-xr-x | index.py | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -12,8 +12,11 @@ from lxml import etree from lxml.html import formfill from StringIO import StringIO import ldap -import mx.DateTime +import mx.DateTime, urllib from accountservice import accountservice +import ticket + +tgt_sites = ['wiki'] class ldapobj(object): def __init__(s, data): @@ -61,7 +64,12 @@ class SubdapSite(object): # e.message['info'] user = ldapobj(l.search_s(dn, ldap.SCOPE_BASE, '(objectclass=*)', [])) - return render('select.html', user = user) + + tgts = {} + for site in tgt_sites: + tgts[site] = urllib.urlencode(ticket.tgt_create(site, user['cn'])) + + return render('select.html', user = user, tgts = tgts) ## x = '' # for r in data: |