<commit_before>0. a good link to setup openldap.
http://blog.csdn.net/magic881213/article/details/7848577

1. Build.
cd $XTERN_ROOT/apps/ldap
./mk

2. Start server (server is started as debug mode, and listens to 4008 port).
./install/libexec/slapd.x86 -d256 -f $XTERN_ROOT/apps/ldap/install/etc/openldap/slapd.conf -h ldap://:4008

3. Add one entry.
./install/bin/ldapadd -H ldap://:4008 -x -D "cn=manager, dc=example,dc=com" -w secret -f test2.ldif

<commit_msg>Added scripts to build and run openldap in xtern.<commit_after>0. a good link to setup openldap.
http://blog.csdn.net/magic881213/article/details/7848577

1. Build.
cd $XTERN_ROOT/apps/ldap
./mk

2. Start server (server is started as debug mode, and listens to 4008 port).
./install/libexec/slapd.x86 -d256 -f $XTERN_ROOT/apps/ldap/install/etc/openldap/slapd.conf -h ldap://:4008

3. Add one entry (just a simple client operation).
./install/bin/ldapadd -H ldap://:4008 -x -D "cn=manager, dc=example,dc=com" -w secret -f test2.ldif

4. Run a concurrent benchmark with the openldap server. The benchmark comes from the test suite of openldap.
./run

{'fraction_non_alphanumeric': 0.13129496402877697, 'fraction_numerical': 0.06384892086330936, 'mean_word_length': 3.6182572614107884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5731529', 'n_tokens_mistral': 462, 'n_tokens_neox': 424, 'n_words': 128}