-
Notifications
You must be signed in to change notification settings - Fork 23
0. General
If you are using godap
for the first time, please refer to the Installation and Usage sections from the README for basic instructions.
After you have connected to your directory, follow the specific instructions in the wiki for examples and common pitfalls.
Other than the flags already explained in the README, the following flags can also be set to customize the connection:
-
-G
- The paging size to use. Most queries ingodap
are paged - that is, they retrieve the results in pages of a specific size. As long as your environment allows it, you can change the paging size to try to makegodap
more performatic. Some directories limit queries to1000
results, so the default paging forgodap
is hardcoded to800
. -
-L
- This attribute specifies the maximum number of attributes to show to the user in object trees (ifExpandAttrs
is set totrue
). Some attributes can have hundreds of values, so this is needed to avoid having to scroll through a huge number of values. The entries past the specified value of 20 are hidden by default, and you can show them by hittingENTER
on top of the[hidden entries]
text, or by runninggodap
again with a higher-L
value. -
-T
- The timeout for LDAP connections in seconds.
The f
(FormatAttrs) / e
(Emojis) / c
(Colors) / a
(ExpandAttrs) / d
(Deleted) keybindings or command-line flags can be used to control basic behaviors of godap
. These are self-explanatory, with exception of d
(Deleted), which is disabled by default. When specified, it will include an AD-specific control (LDAP_SERVER_SHOW_DELETED_OID) in most search requests that will also retrieve objects that were deleted in the CN=Deleted Objects
container:
Note that you must reload the root object with r
after toggling the d
option in order to have godap
fetch the container that holds deleted objects, and that this will only work for environments that have the Active Directory Recycle Bin enabled.
The l
keybinding can be used to change the connection configuration after starting godap
. It opens the page below, where you can change the server address, port, SOCKS proxy address, domain name, credentials, and whether to use LDAPS & ignore server certificate validation.
Clicking on Update
will make a new connection to the target server using the updated parameters.
If your connection is broken somehow during the session, you can reconnect with Ctrl+R
or by just closing godap
and running it again.
-
TLS can be established in the
godap
session by either connecting to an LDAPS port (usually 636) with-S
or connecting to the standard port (usually 389) and upgrading the session afterwards with StartTLS (Ctrl+U
). -
Note that, if the server certificate is untrusted, for both methods you'll need to have started
godap
with-I
or set theIgnoreCert
toggle toTrue
in theConnection Config
.