Commit acf436905ae62a809aa8a1ba9e927ab47f44ce35

Authored by nbm
1 parent 883a3ed6

If there are configured authentication sources, allow the admin to

create a user from these sources.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4244 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/principals/adduser.smarty
1 <h2>Add a user</h2> 1 <h2>Add a user</h2>
2 2
3 <p class="descriptiveText"><strong>FIXME</strong> brief overview of user management.</p> 3 <p class="descriptiveText"><strong>FIXME</strong> brief overview of user management.</p>
4 -<div class="ktError"><p><strong>FIXME</strong> handle LDAP users and read-only sources  
5 -correctly in the add section.</p></div> 4 +
  5 +{if $authentication_sources}
  6 + <form action="{$smarty.server.PHP_SELF}" method="POST">
  7 + <input type="hidden" name="action" value="addUserFromSource" />
  8 + <fieldset><legend>Add a user from an authentication source</legend>
  9 +
  10 +<p class="descriptiveText">Instead of manually creating the user within
  11 +the document management system, the user can be found within an
  12 +authentication source (such as an LDAP directory) that has already been
  13 +configured. This ensures that the user is correctly set up with limited
  14 +intervention from the administrator, and that the user will not need to
  15 +remember an additional password for the document management system.</p>
  16 +
  17 + {entity_select name="source_id" entities=$authentication_sources}
  18 + <div class="form_actions ">
  19 + <input type="submit" name="submit" value="Add from source" />
  20 + </div>
  21 + </fieldset>
  22 + </form>
  23 +</p>
  24 +
  25 +<p class="descriptiveText">Alternatively, you can manually create a user
  26 +within KnowledgeTree below.</p>
  27 +{/if}
6 28
7 <form action="{$smarty.server.PHP_SELF}" method="POST"> 29 <form action="{$smarty.server.PHP_SELF}" method="POST">
8 <input type="hidden" name="action" value="createUser" /> 30 <input type="hidden" name="action" value="createUser" />
@@ -16,4 +38,4 @@ correctly in the add section.&lt;/p&gt;&lt;/div&gt; @@ -16,4 +38,4 @@ correctly in the add section.&lt;/p&gt;&lt;/div&gt;
16 <a href="?action=main" class="ktCancelLink">Cancel</a> 38 <a href="?action=main" class="ktCancelLink">Cancel</a>
17 </div> 39 </div>
18 </fieldset> 40 </fieldset>
19 - </form>  
20 \ No newline at end of file 41 \ No newline at end of file
  42 + </form>