summaryrefslogblamecommitdiffstats
path: root/templates/sysconfig/ad-checkconnection.html
blob: 471208e823342c90e37a08ec726c6e6d3a0fd827 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
   
                               


               
                                                                                                                
                                                                                                              


                       
                                                                                                          
                                                                    
                                                                    



                                                                              
                                                                  
                                                                                            




                                                                                                      
                                                                    

                                                                              
                                                                                 
                                                                      
                                                                  
                                                                              
                                                                                                                                 


                               




                                                          
                                                                       



                                                                                              


                                                       
         








                                                                                       
         
         
<p>
	{{lang_connectionWait}}
</p>

<div id="zeug">
	<div data-tm-id="{{self-search}}" data-tm-log="messages" data-tm-callback="selfCb">LDAP Self-Query</div>
	<div data-tm-id="{{tm-search}}" data-tm-log="messages" data-tm-callback="ldapCb">LDAP Test-Query</div>
</div>
<br>
<div class="pull-left">
	<form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step=AdAuth_Start">
		<input type="hidden" name="token" value="{{token}}">
		<input name="title" value="{{title}}" type="hidden">
		<input name="server" value="{{server}}" type="hidden">
		<input name="searchbase" value="{{searchbase}}" type="hidden">
		<input name="binddn" value="{{binddn}}" type="hidden">
		<input name="bindpw" value="{{bindpw}}" type="hidden">
		<input name="home" value="{{home}}" type="hidden">
		<button type="submit" class="btn btn-primary">&laquo; {{lang_back}}</button>
	</form>
</div>
<div class="pull-right">
	<form role="form" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
		<input type="hidden" name="token" value="{{token}}">
		<input name="title" value="{{title}}" type="hidden">
		<input name="server" value="{{server}}" type="hidden">
		<input name="searchbase" value="{{searchbase}}" type="hidden">
		<input id="setdn" name="binddn" value="{{binddn}}" type="hidden">
		<input name="bindpw" value="{{bindpw}}" type="hidden">
		<input name="home" value="{{home}}" type="hidden">
		<input name="originalbinddn" value="{{binddn}}" type="hidden">
		<button id="nextbutton" type="submit" class="btn btn-primary" style="display:none">{{lang_skip}} &raquo;</button>
	</form>
</div>
<script type="text/javascript">
	function ldapCb(task)
	{
		if (!task || !task.statusCode)
			return;
		if (task.statusCode === 'TASK_FINISHED') {
			$('#nextbutton').html('Weiter &raquo;').show();
		}
		if (task.statusCode === 'TASK_ERROR' || task.statusCode === 'PARENT_FAILED') {
			$('#nextbutton').html('Trotzdem weiter &raquo;');
		}
		if (task.statusCode === 'TASK_ERROR') {
			$('#nextbutton').show();
		}
	}
	function selfCb(task)
	{
		if (!task || !task.statusCode)
			return;
		if (task.statusCode === 'TASK_FINISHED' && task.data && task.data.dn) {
			$('#setdn').val(task.data.dn);
		} else {
			$('#nextbutton').html('Trotzdem weiter &raquo;');
		}
	}
</script>