/[adm]/puppet/modules/restrictshell/templates/ldap-sshkey2file.py
ViewVC logotype

Diff of /puppet/modules/restrictshell/templates/ldap-sshkey2file.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 339 by boklm, Wed Nov 17 15:13:07 2010 UTC revision 340 by misc, Sat Nov 20 11:52:54 2010 UTC
# Line 9  try: Line 9  try:
9  except ImportError, e:  except ImportError, e:
10      print "Please install python-ldap before running this program"      print "Please install python-ldap before running this program"
11      sys.exit(1)      sys.exit(1)
12  <%  
 dc_suffix = 'dc=' + domain.gsub('.',',dc=')  
 %>  
13  basedn="<%= dc_suffix %>"  basedn="<%= dc_suffix %>"
14  peopledn="ou=people,%s" % basedn  peopledn="ou=people,%s" % basedn
15  uris=['ldap://ldap.<%= domain %>']  uris=['ldap://ldap.<%= domain %>']

Legend:
Removed from v.339  
changed lines
  Added in v.340

  ViewVC Help
Powered by ViewVC 1.1.30