added vendor name and version
This commit is contained in:
		
							parent
							
								
									3a7b94f070
								
							
						
					
					
						commit
						89d84951a5
					
				|  | @ -43,8 +43,10 @@ $configcontext = ''; | ||||||
| $supportedldapversion = ''; | $supportedldapversion = ''; | ||||||
| $supportedsaslmechanisms = ''; | $supportedsaslmechanisms = ''; | ||||||
| $subschemasubentry = ''; | $subschemasubentry = ''; | ||||||
|  | $vendorname = ''; | ||||||
|  | $vendorversion = ''; | ||||||
| 
 | 
 | ||||||
| $result = @ldap_read($_SESSION['ldap']->server(), '', 'objectclass=*', array('+', '*')); | $result = @ldap_read($_SESSION['ldap']->server(), '', 'objectclass=*', array('+', '*', 'subschemasubentry')); | ||||||
| if ($result) { | if ($result) { | ||||||
| 	$info = @ldap_get_entries($_SESSION['ldap']->server(), $result); | 	$info = @ldap_get_entries($_SESSION['ldap']->server(), $result); | ||||||
| 	if ($info) { | 	if ($info) { | ||||||
|  | @ -61,7 +63,7 @@ if ($result) { | ||||||
| 			$configcontext = $info['configcontext'][0]; | 			$configcontext = $info['configcontext'][0]; | ||||||
| 		} | 		} | ||||||
| 		if (isset($info['supportedldapversion'])) { | 		if (isset($info['supportedldapversion'])) { | ||||||
| 			$supportedldapversion = $info['supportedldapversion'][0]; | 			$supportedldapversion = implode(', ', $info['supportedldapversion']); | ||||||
| 		} | 		} | ||||||
| 		if (isset($info['supportedsaslmechanisms'])) { | 		if (isset($info['supportedsaslmechanisms'])) { | ||||||
| 			$supportedsaslmechanisms = implode(', ', $info['supportedsaslmechanisms']); | 			$supportedsaslmechanisms = implode(', ', $info['supportedsaslmechanisms']); | ||||||
|  | @ -69,6 +71,12 @@ if ($result) { | ||||||
| 		if (isset($info['subschemasubentry'])) { | 		if (isset($info['subschemasubentry'])) { | ||||||
| 			$subschemasubentry = $info['subschemasubentry'][0]; | 			$subschemasubentry = $info['subschemasubentry'][0]; | ||||||
| 		} | 		} | ||||||
|  | 		if (isset($info['vendorname'])) { | ||||||
|  | 			$vendorname = $info['vendorname'][0]; | ||||||
|  | 		} | ||||||
|  | 		if (isset($info['vendorversion'])) { | ||||||
|  | 			$vendorversion = $info['vendorversion'][0]; | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -92,8 +100,10 @@ echo "<td style=\"padding:10px;\">" . $namingContexts . "</td></tr>"; | ||||||
| echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("LDAP version") . "</b>  </td>"; | echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("LDAP version") . "</b>  </td>"; | ||||||
| echo "<td style=\"padding:10px;\">" . $supportedldapversion . "</td></tr>"; | echo "<td style=\"padding:10px;\">" . $supportedldapversion . "</td></tr>"; | ||||||
| 
 | 
 | ||||||
| echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Config suffix") . "</b>  </td>"; | if ($configcontext != '') { | ||||||
| echo "<td style=\"padding:10px;\">" . $configcontext . "</td></tr>"; | 	echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Config suffix") . "</b>  </td>"; | ||||||
|  | 	echo "<td style=\"padding:10px;\">" . $configcontext . "</td></tr>"; | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Schema suffix") . "</b>  </td>"; | echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Schema suffix") . "</b>  </td>"; | ||||||
| echo "<td style=\"padding:10px;\">" . $subschemasubentry . "</td></tr>"; | echo "<td style=\"padding:10px;\">" . $subschemasubentry . "</td></tr>"; | ||||||
|  | @ -101,6 +111,16 @@ echo "<td style=\"padding:10px;\">" . $subschemasubentry . "</td></tr>"; | ||||||
| echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("SASL mechanisms") . "</b>  </td>"; | echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("SASL mechanisms") . "</b>  </td>"; | ||||||
| echo "<td style=\"padding:10px;\">" . $supportedsaslmechanisms . "</td></tr>"; | echo "<td style=\"padding:10px;\">" . $supportedsaslmechanisms . "</td></tr>"; | ||||||
| 
 | 
 | ||||||
|  | if ($vendorname != '') { | ||||||
|  | 	echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Vendor name") . "</b>  </td>"; | ||||||
|  | 	echo "<td style=\"padding:10px;\">" . $vendorname . "</td></tr>"; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | if ($vendorversion != '') { | ||||||
|  | 	echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Vendor version") . "</b>  </td>"; | ||||||
|  | 	echo "<td style=\"padding:10px;\">" . $vendorversion . "</td></tr>"; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| echo "</table>\n"; | echo "</table>\n"; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue