Append your wireguard peer by run this command in your ldap account.
- Install golang 1.19
- Clone this repo and cd into WireguardLDAPManager
git clone https://github.com/NCKUCTF/WireguardLDAPManager
cd WireguardLDAPManager
- Run make
make clean && make
- Install LDAPUserTools or LDAPCLI and set your bind config in
/etc/ldap/bind.yaml
vi /etc/ldap/bind.yaml
url: ldap://127.0.0.1
binddn: cn=admin,dc=example,dc=com
bindpasswd: test1234
- CD into repo dir
cd WireguardLDAPManager
- Run make
make install
- CD into repo dir
cd WireguardLDAPManager
- Run make
make uninstall
Use wgldapmanager help
to see command usage.
Usage: wgldapmanager COMMAND
Options:
-h Print help message
A list of commands is shown below. To get detailed usage and help for a
command, run:
wgldapmanager help COMMAND
Here is the list of commands available with a short syntax reminder. Use the
'help' command above to get full usage details.
help
reconfig
showconfig <key name>
genkey <key name>
delkey <key name>
clearkey