This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <signal.h> | |
#include <stdio.h> | |
#include <event2/event.h> | |
#include <event2/bufferevent.h> | |
struct event_base *base; | |
void signal_cb(evutil_socket_t signal, short action, void *arg) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lber.h> | |
int main( int argc, char **argv ) | |
{ | |
BerElement *write, *read, *compare; | |
BerValue xfer, seq, *array; | |
ber_tag_t tag; | |
ber_len_t len; | |
int i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Adapted from code in | |
# https://github.com/eclipse/paho.mqtt.python/tree/master/examples | |
# Can't remember which. | |
# LICENSE: | |
# This project is dual licensed under the Eclipse Public License 1.0 and the | |
# Eclipse Distribution License 1.0 as described in the epl-v10 and edl-v10 files. | |
"Test client from the paho docs" | |
import asyncio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import asyncio | |
import ldap | |
import ldap_wrapper | |
async def search(client): | |
search = client.search("cn=monitor", ldap.SCOPE_SUBTREE, attrlist=['+', '*']) | |
try: |