Xaraya PHP Cross Reference Web Portal Systems

Source: /modules/authldap/xartemplates/admin-modifyconfig.xt - 252 lines - 15087 bytes - Text - Print

   1  <xar:comment> License: GPL http://www.gnu.org/copyleft/gpl.html </xar:comment>
   2  <div class="xar-mod-head">
   3      <span class="xar-mod-title">
   4          <xar:mlstring>AuthLDAP Administration</xar:mlstring>
   5      </span>
   6  </div>
   7  <div class="xar-mod-body">
   8      <xar:template file="admin-menu" type="module" />
   9      <h2>
  10          <xar:mlstring>Modify AuthLDAP Configuration</xar:mlstring>
  11      </h2>
  12      <form name="post" id="post" action="#xarModURL('authldap','admin','updateconfig')#" method="post" enctype="application/x-www-form-urlencoded">
  13          <div class="xar-form-section">
  14              <h3>
  15                  <xar:mlstring>LDAP Server Configuration</xar:mlstring>
  16              </h3>
  17              <p>
  18                  <xar:ml>
  19                      <xar:mlstring>If you are configuring Xaraya to use LDAP for user authentication, you should configure the LDAP server within the <a href="#(1)">authldap module</a>.</xar:mlstring>
  20                      <xar:mlvar>#xarModURL('authldap', 'admin', 'modifyconfig')#</xar:mlvar>
  21                  </xar:ml>
  22              </p>
  23              <div class="xar-form-input-wrapper">
  24                  <label for="ldapserver" title="#xarML('LDAP Server Name or IP')#" class="xar-form-label">
  25                      <xar:mlstring>LDAP Server Name or IP:</xar:mlstring>
  26                  </label>
  27                  <input type="text" id="ldapserver" name="ldapserver" value="#$ldapservervalue#" />
  28              </div>
  29              <div class="xar-form-input-wrapper">
  30                  <label for="portnumber" title="#xarML('LDAP Server Port Number')#" class="xar-form-label">
  31                      <xar:mlstring>LDAP Server Port Number:</xar:mlstring>
  32                  </label>
  33                  <input type="text" id="portnumber" name="portnumber" value="#$portnumbervalue#" />
  34              </div>
  35              <p>
  36                  <strong><xar:mlstring>Note:</xar:mlstring></strong><xar:mlstring>If the server name contains "ldap://" or "ldaps://", then the port number is ignored.  Instead, append the port number to the server name as in "ldaps://server:port".</xar:mlstring>
  37              </p>
  38              <div class="xar-form-input-wrapper-after">
  39                  <xar:if condition="$anonymousbindvalue eq 'true'">
  40                      <input type="checkbox" id="anonymousbind" name="anonymousbind" value="1" checked="checked"/>
  41                  <xar:else/>
  42                      <input type="checkbox" id="anonymousbind" name="anonymousbind" value="1" />
  43                  </xar:if>
  44                  <label for="anonymousbind" title="#xarML('Anonymously Bind to Server')#">
  45                      <xar:mlstring>Anonymously Bind to Server</xar:mlstring>
  46                  </label>
  47              </div>
  48              <div class="xar-form-input-wrapper">
  49                  <label for="binddn" title="#xarML('LDAP bind DN')#" class="xar-form-label">
  50                      <xar:mlstring>LDAP bind DN:</xar:mlstring>
  51                  </label>
  52                  <input type="text" id="binddn" name="binddn" value="#$binddnvalue#" />
  53              </div>
  54              <div class="xar-form-input-wrapper">
  55                  <label for="uidfield" title="#xarML('LDAP UserID Field Name')#" class="xar-form-label">
  56                      <xar:mlstring>LDAP UserID Field Name:</xar:mlstring>
  57                  </label>
  58                  <input type="text" id="uidfield" name="uidfield" value="#$uidfieldvalue#" />
  59              </div>
  60              <div class="xar-form-input-wrapper-after">
  61                  <xar:if condition="$searchuserdnvalue eq 'true'">
  62                      <input type="checkbox" id="searchuserdn" name="searchuserdn" value="1" checked="checked"/>
  63                  <xar:else/>
  64                      <input type="checkbox" id="searchuserdn" name="searchuserdn" value="1" />
  65                  </xar:if>
  66                  <label for="searchuserdn" title="#xarML('Search User DN')#">
  67                          <xar:mlstring>Search User DN</xar:mlstring>
  68                  </label>
  69              </div>
  70              <div class="xar-form-input-wrapper">
  71                  <label for="adminid" title="#xarML('LDAP Admin ID')#" class="xar-form-label">
  72                      <xar:mlstring>LDAP Admin ID</xar:mlstring>
  73                  </label>
  74                  <input type="text" id="adminid" name="adminid" value="#$adminidvalue#" />
  75              </div>
  76              <div class="xar-form-input-wrapper">
  77                  <label for="adminpasswd" title="#xarML('LDAP Admin Password')#" class="xar-form-label">
  78                      <xar:mlstring>LDAP Admin Password</xar:mlstring>
  79                  </label>
  80                  <input type="password" id="adminpasswd" name="adminpasswd" value="#$adminpasswdvalue#" />
  81              </div>
  82              <div class="xar-form-input-wrapper-after">
  83                  <xar:if condition="$tls eq 'true'">
  84                      <input type="checkbox" id="tls" name="tls" value="1" checked="checked"/>
  85                  <xar:else/>
  86                      <input type="checkbox" id="tls" name="tls" value="1" />
  87                  </xar:if>
  88                  <label for="tls" title="#xarML('LDAP Admin Password')#">
  89                      <xar:mlstring>Use TLS (LDAP Protocol 3 only)</xar:mlstring>
  90                  </label>
  91              </div>
  92          </div>
  93  
  94          <div class="xar-form-section">
  95              <h3>
  96                  <xar:mlstring>Authentication Configuration</xar:mlstring>
  97              </h3>
  98              <div class="xar-form-input-wrapper-after">
  99                  <xar:if condition="in_array('authldap',xarConfigGetVar('Site.User.AuthenticationModules'))">
 100                      <input type="checkbox" id="activate" name="activate" value="1" checked="checked" />
 101                  <xar:else/>
 102                      <input type="checkbox" id="activate" name="activate" value="1" />
 103                  </xar:if>
 104                  <label for="activate" title="#xarML('Activate authentication module')#">
 105                      <xar:mlstring>Activate authentication module</xar:mlstring>
 106                  </label>
 107              </div>
 108              <p>
 109                  <xar:mlstring>If the LDAP Server is unavailable for authentication, Xaraya authentication can be used as a failover authentication system.  If failover to Xaraya is allowed, then this will only occur if authentication by LDAP is not available.  If the LDAP bind is successful but the user is not authenticated, then the failover will not be permitted.</xar:mlstring>
 110              </p>
 111              <div class="xar-form-input-wrapper-after">
 112                  <xar:if condition="$failovervalue eq 'true'">
 113                      <input type="checkbox" name="failover" id="failover" value="1" checked="checked" />
 114                  <xar:else/>
 115                      <input type="checkbox" name="failover" id="failover" value="1" />
 116                  </xar:if>
 117                  <label for="failover" title="#xarML('Allow Authentication by Xaraya if the LDAP Server is Unavailable?')#" class="xar-form-label">
 118                      <xar:mlstring>Allow Authentication by Xaraya if the LDAP Server is Unavailable?</xar:mlstring>
 119                  </label>
 120              </div>
 121          </div>
 122  
 123          <div class="xar-form-section">
 124              <h3>
 125                  <xar:mlstring>User Configuration</xar:mlstring>
 126              </h3>
 127              <p>
 128                  <xar:mlstring>If a user exists in LDAP but does not have a login account to Xaraya, the user will not be able to login.  By selecting the option below and entering the attribute values, a user that has account information in LDAP will be automatically added to the Xaraya database and allowed to login.</xar:mlstring>
 129              </p>
 130              <div class="xar-form-input-wrapper-after">
 131                  <xar:if condition="$adduservalue eq 'true'">
 132                      <input type="checkbox" id="adduser" name="adduser" value="1" checked="checked" />
 133                  <xar:else/>
 134                      <input type="checkbox" id="adduser" name="adduser" value="1" />
 135                  </xar:if>
 136                  <label for="adduser" title="#xarML('Add LDAP User to Xaraya Database on Login')#">
 137                      <xar:mlstring>Add LDAP User to Xaraya Database on Login</xar:mlstring>
 138                  </label>
 139              </div>
 140              <div class="xar-form-input-wrapper-after">
 141                  <xar:if condition="$storepasswordvalue eq 'true'">
 142                      <input type="checkbox" id="storepassword" name="storepassword" value="1" checked="checked" />
 143                  <xar:else/>
 144                      <input type="checkbox" id="storepassword" name="storepassword" value="1" />
 145                  </xar:if>
 146                  <label for="storepassword" title="#xarML('Store Users LDAP Password in the Xaraya Database')#">
 147                      <xar:mlstring>Store User's LDAP Password in the Xaraya Database?</xar:mlstring>
 148                  </label>
 149              </div>
 150              <div class="xar-form-input-wrapper">
 151                  <label for="adduseruname" title="#xarML('LDAP Username Attribute Name')#" class="xar-form-label">
 152                      <xar:mlstring>LDAP Username Attribute Name:</xar:mlstring>
 153                  </label>
 154                  <input type="text" name="adduseruname" id="addusername" size="30" value="#$adduserunamevalue#" />
 155              </div>
 156              <div class="xar-form-input-wrapper">
 157                  <label for="adduseremail" title="#xarML('LDAP Email Attribute Name')#" class="xar-form-label">
 158                      <xar:mlstring>LDAP Email Attribute Name:</xar:mlstring>
 159                  </label>
 160                  <input type="text" id="adduseremail" name="adduseremail" size="30" value="#$adduseremailvalue#" />
 161              </div>
 162              <div class="xar-form-input-wrapper">
 163                  <label for="defaultgroup" title="#xarML('Default Group')#" class="xar-form-label">
 164                      <xar:mlstring>Default Group:</xar:mlstring>
 165                  </label>
 166                  <select name="defaultgroup" id="defaultgroup">
 167                      <xar:loop name="$groups">
 168                          <xar:if condition="$loop:item.name eq $defaultgroup">
 169                              <option name="#$loop:item.name#" id="#$loop:item.name#" value="#$loop:item.name#" selected="selected">#$loop:item.name#</option>
 170                          <xar:else/>
 171                              <option name="#$loop:item.name#" id="#$loop:item.name#" value="#$loop:item.name#">#$loop:item.name#</option>
 172                          </xar:if>
 173                      </xar:loop>
 174                  </select>
 175              </div>
 176          </div>
 177          <div class="xar-form-section">
 178              <h3>
 179                  <xar:mlstring>Group Configuration</xar:mlstring>
 180              </h3>
 181              <div class="xar-form-input-wrapper">
 182                  <label for="defaultgroup4groups_id" title="#xarML('Default Group for Groups')#" class="xar-form-label">
 183                      <xar:mlstring>Default Group for Groups</xar:mlstring>
 184                  </label>
 185                  <select name="defaultgroup4groups_id">
 186                      <xar:loop name="$groups">
 187                          <xar:if condition="$loop:item.id eq $defaultgroup4groups_id">
 188                              <option value="#$loop:item.id#" selected="selected">#$loop:item.name#</option>
 189                          <xar:else/>
 190                              <option value="#$loop:item.id#">#$loop:item.name#</option>
 191                          </xar:if>
 192                      </xar:loop>
 193                  </select>
 194              </div>
 195              <div class="xar-form-input-wrapper">
 196                  <label for="ldap_base4groups" title="#xarML('LDAP base for group search')#" class="xar-form-label">
 197                      <xar:mlstring>LDAP base for group search:</xar:mlstring>
 198                  </label>
 199                  <input type="text" id="ldap_base4groups" name="ldap_base4groups" size="30" value="#$ldap_base4groups#" />
 200              </div>
 201              <div class="xar-form-input-wrapper">
 202                  <label for="ldap_groups_to_import" title="#xarML('LDAP groups to import')#" class="xar-form-label">
 203                      <xar:mlstring>LDAP groups to import:</xar:mlstring>
 204                  </label>
 205                  <div class="xar-form-container-after">
 206                      <input type="text" id="ldap_groups_to_import" name="ldap_groups_to_import" size="30" value="#$ldap_groups_to_import#" />
 207                      <xar:mlstring>(separated by comma <kdb>','</kdb>)</xar:mlstring>
 208                  </div>
 209              </div>
 210  
 211              <fieldset>
 212                  <legend>
 213                      <xar:mlstring>LDAP Attribute names</xar:mlstring>
 214                  </legend>
 215                  <div class="xar-form-input-wrapper">
 216                      <label for="group_name_attrname" title="#xarML('LDAP attribute name: group name')#" class="xar-form-label">
 217                          <xar:mlstring>Group name:</xar:mlstring>
 218                      </label>
 219                      <input type="text" id="group_name_attrname" name="group_name_attrname" size="30" value="#$group_name_attrname#" />
 220                  </div>
 221                  <div class="xar-form-input-wrapper">
 222                      <label for="group_ref_attrname" title="#xarML('LDAP attribute name: children group reference')#" class="xar-form-label">
 223                          <xar:mlstring>Children group reference:</xar:mlstring>
 224                      </label>
 225                      <input type="text" id="group_ref_attrname" name="group_ref_attrname" size="30" value="#$group_ref_attrname#" />
 226                  </div>
 227                  <div class="xar-form-input-wrapper">
 228                      <label for="group_ref_attrtype" title="#xarML('LDAP attribute type: children group attribute type')#" class="xar-form-label">
 229                          <xar:mlstring>Children group attribute type:</xar:mlstring>
 230                      </label>
 231                      <input type="text" id="group_ref_attrtype" name="group_ref_attrtype" size="30" value="#$group_ref_attrtype#" />
 232                  </div>
 233                  <div class="xar-form-input-wrapper">
 234                      <label for="user_ref_attrname" title="#xarML('LDAP attribute name: user member reference')#" class="xar-form-label">
 235                          <xar:mlstring>User member reference:</xar:mlstring>
 236                      </label>
 237                      <input type="text" id="user_ref_attrname" name="user_ref_attrname" size="30" value="#$user_ref_attrname#" />
 238                  </div>
 239                  <div class="xar-form-input-wrapper">
 240                      <label for="user_ref_attrtype" title="#xarML('LDAP attribute type: user member attribute type')#" class="xar-form-label">
 241                          <xar:mlstring>User member reference attribute type:</xar:mlstring>
 242                      </label>
 243                      <input type="text" id="user_ref_attrtype" name="user_ref_attrtype" size="30" value="#$user_ref_attrtype#" />
 244                  </div>
 245              </fieldset>
 246          </div>
 247          <div class="xar-form-footer">
 248              <input type="hidden" name="authid" id="authid" value="#$authid#" />
 249              <input type="submit" value="#xarML('Submit')#" />
 250          </div>
 251      </form>
 252  </div>

title

Description

title

Description

title

Description

title

title

Body