browse_ldap
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| browse_ldap [2021/04/06 17:15] – Homebrew has changed it's interface _macleos | browse_ldap [2026/09/26 23:58] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | This tutorial shows you how to use //Apache Directory Studio// to browse [[ldap]]. Only system administrators will have access to the credentials required to get through a part of this tutorial. This tutorial also assumes you have SSH all set up. | ||
| - | |||
| - | |||
| - | |||
| - | ====== Getting the software ====== | ||
| - | |||
| - | |||
| - | First, you'll need to grab //Apache Directory Studio// from [[https:// | ||
| - | |||
| - | macOS tip, if you have Homebrew, just run this command: < | ||
| - | |||
| - | Once you've got that installed (if you're a macOS user, you may run across [[https:// | ||
| - | |||
| - | |||
| - | ====== Finding the main interface ====== | ||
| - | |||
| - | |||
| - | Right now you should be presented with the below welcome screen. | ||
| - | |||
| - | {{ file_ldap_welcome.png? | ||
| - | |||
| - | Hit the close button next to the **Welcome** tab (highlighted above) to get access to the main interface. | ||
| - | |||
| - | {{ file_ldap_main_interface.png? | ||
| - | |||
| - | |||
| - | ====== Adding a connection ====== | ||
| - | |||
| - | |||
| - | Go to File -> New, and then navigate to the //LDAP Connection// | ||
| - | |||
| - | {{ file_ldap_select_wizard.png? | ||
| - | |||
| - | Navigating to LDAP Connection will bring us to the below screen: | ||
| - | |||
| - | {{ file_ldap_new_connection.png? | ||
| - | |||
| - | |||
| - | ===== Setting the Network Parameters ===== | ||
| - | |||
| - | |||
| - | Set the name to //Tardis localhost: | ||
| - | |||
| - | Yes, the LDAP server is on Tardis, but it is behind the firewall. We'll be using SSH port forwarding to get a connection through to the LDAP VM on the Tardis network. Run this command to start SSH port forwarding. | ||
| - | |||
| - | < | ||
| - | |||
| - | * //-N//: This means we do not want execute a remote command. | ||
| - | * //-L 1389: | ||
| - | |||
| - | The reason we use 1389 locally instead of 389, is that all ports under 1024 require **sudo** to be used. | ||
| - | |||
| - | Once you run the command, depending on how you have things set up, you will be prompted for a password. You'll then receive the welcome message, and then nothing will happen. This is good. | ||
| - | |||
| - | On the wizard, for the **Hostname**, | ||
| - | |||
| - | {{ file_ldap_new_connection_filled.png? | ||
| - | |||
| - | Leave the other options as default, and press Next. | ||
| - | |||
| - | |||
| - | ===== Get the LDAP password ===== | ||
| - | |||
| - | |||
| - | There are two ways to get the password and binddn. | ||
| - | |||
| - | |||
| - | ==== Way 1: Get Password From LDAP Server ==== | ||
| - | |||
| - | |||
| - | - SSH to the LDAP server: < | ||
| - | - Start reasding the LDAP config file: < | ||
| - | - Scroll down to the bottom (use page down / arrow keys) | ||
| - | - Find < | ||
| - | |||
| - | |||
| - | ==== Way 2: Get Password From Shell Server ==== | ||
| - | |||
| - | |||
| - | This works if you already have root access on the shell server. | ||
| - | |||
| - | We'll be grabbing these details from the LDAP config file on Fez. Open up SSH, and read the < | ||
| - | |||
| - | The file has the structure of key/value pairs, as well as categories. It should look a little bit like this: | ||
| - | |||
| - | < | ||
| - | [server] | ||
| - | ... | ||
| - | binddn=some=stuff, | ||
| - | bindpw=and, | ||
| - | ... | ||
| - | </ | ||
| - | |||
| - | * < | ||
| - | * < | ||
| - | * < | ||
| - | |||
| - | The ellipsis just represents that there may be other key/value pairs in the file. | ||
| - | |||
| - | |||
| - | ===== Authentication ===== | ||
| - | |||
| - | |||
| - | This screen requires us to provide the details for Simple Authentication. | ||
| - | |||
| - | {{ file_ldap_authentication.png? | ||
| - | |||
| - | Press Finish, and you should be in! | ||
| - | |||
| - | {{ file_ldap_browsing.png? | ||
| - | |||
| - | |||
| - | ====== Connecting again ====== | ||
| - | |||
| - | |||
| - | All of that was just a one time setup. In the future, when you start Apache Directory Studio, you just need to run < | ||
| - | |||
| - | {{ file_ldap_connecting_again.png? | ||
| - | |||
| - | |||
| - | ====== Tips & Tricks ====== | ||
| - | |||
| - | |||
| - | * Clear groups cache using //sudo nscd --invalidate=group// | ||
| - | |||
| - | |||
browse_ldap.1617729334.txt.gz · Last modified: (external edit)
