def addForm(self, form): aclValidator = [ PageHelpers.PatternValidator( '^[a-zA-Z0-9._-]+$', "Invalid Format: Don't use spaces in an ACL Name.") ] form.addField('acl', formal.String(required=True, validators=aclValidator), label="ACL Name") form.addField('src', formal.String(required=True), label="Source IP")
def addForm(self, form): aclValidator = [ PageHelpers.PatternValidator( '^[a-zA-Z0-9._-]+$', "Invalid Format: Don't use spaces in an ACL Name.") ] form.addField('acl', formal.String(required=True, validators=aclValidator), label="ACL Name") form.addField('user', formal.String(required=True), label="Users", description="Comma separated list of users")
def addForm(self, form): aclValidator = [ PageHelpers.PatternValidator( '^[a-zA-Z0-9._-]+$', "Invalid Format: Don't use spaces in an ACL Name.") ] form.addField('acl', formal.String(required=True, validators=aclValidator), label="ACL Name") form.addField( 'adgroup', formal.String(required=True), label="Active Directory Groupname", description= "The name of the group on the active directory, note that you may not use spaces in this group name" ) form.addField( 'adpath', formal.String(required=True), label="Active Directory Group Path", description= "The path excluding the base dn that you would use to access group objects, these are typically something like, OU=Distribution,OU=Groups" )
from nevow import rend, loaders, tags from twisted.application import service, internet, strports from twisted.web import server, static from twisted.python import failure from nevow import inevow, rend, appserver, static, guard, url, loaders, stan from nevow.taglibrary import tabbedPane import Tree, Settings, LDAP, formal, ldap, os, random, sha from Core import PageHelpers, Utils, confparse, WebUtils import copy, time from Pages import VPN # Import the VPN module for making certs UserNameValidators = [ PageHelpers.PatternValidator( "^[a-zA-Z0-9._-]+$", "Invalid Username, please make sure that you only use the following characters: a-z 0-9 . _ -" ) ] alpha = "LLPETUMS" class Page(PageHelpers.DefaultPage): addSlash = True flatFil = [] docFactory = loaders.xmlfile('ldaptree.xml', templateDir=Settings.BaseDir + '/templates') def render_pageName(self, ctx, data): return ctx.tag[tags.h2[tags.img(src="/images/users-lg.png"), " ", self.text.users]]