<commit_before># ldap-server

Simple all-in-one LDAP server, which uses in `dc=jboss,dc=org` partition.

## Development

You can simply build the software yourself.

### How to get the sources

You should have [git](http://git-scm.com/) installed

	$ git clone git://github.com/kwart/ldap-server.git

or you can download [current sources as a zip file](https://github.com/kwart/ldap-server/archive/master.zip)

### How to build it

You need to have [Maven](http://maven.apache.org/) installed

	$ cd ldap-server
	$ mvn clean package

### How to run it

	$ java -jar ldap-server.jar [data.ldif]

## Default LDIF

	dn: ou=Users,dc=jboss,dc=org
	objectClass: organizationalUnit
	objectClass: top
	ou: Users
	
	dn: uid=jduke,ou=Users,dc=jboss,dc=org
	objectClass: top
	objectClass: person
	objectClass: inetOrgPerson
	cn: Java Duke
	sn: duke
	uid: jduke
	userPassword: <PASSWORD>

## License

* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
 <commit_msg>Help added to README<commit_after># ldap-server

Simple all-in-one LDAP server, which uses in `dc=jboss,dc=org` partition.

## Development

You can simply build the software yourself.

### How to get the sources

You should have [git](http://git-scm.com/) installed

	$ git clone git://github.com/kwart/ldap-server.git

or you can download [current sources as a zip file](https://github.com/kwart/ldap-server/archive/master.zip)

### How to build it

You need to have [Maven](http://maven.apache.org/) installed

	$ cd ldap-server
	$ mvn clean package

### How to run it

	$ java -jar ldap-server.jar [data.ldif]

#### Help

	$ java -jar ldap-server.jar --help
	The ldap-server is a simple LDAP server implementation based on ApacheDS. It
	creates one user partition with root 'dc=jboss,dc=org'.
	
	Usage: java -jar ldap-server.jar [options] [LDIFs to import]
	  Options:
	    --bind, -b
	       takes [bindAddress] as a parameter and binds the LDAP server on the
	       address
	       Default: 0.0.0.0
	    --help, -h
	       shows this help and exits
	       Default: false
	    --port, -p
	       takes [portNumber] as a parameter and binds the LDAP server on that port
	       Default: 10389
	
	Examples:
	
	$ java -jar ldap-server.jar users.ldif
	Starts LDAP server on port 10389 (all interfaces) and imports users.ldif
	
	$ java -jar ldap-server.jar -b 127.0.0.1 -p 389
	Starts LDAP server on address 127.0.0.1:389 and imports default data (one user
	entry 'uid=jduke,ou=Users,dc=jboss,dc=org'

## Default LDIF

	dn: ou=Users,dc=jboss,dc=org
	objectClass: organizationalUnit
	objectClass: top
	ou: Users
	
	dn: uid=jduke,ou=Users,dc=jboss,dc=org
	objectClass: top
	objectClass: person
	objectClass: inetOrgPerson
	cn: Java Duke
	sn: duke
	uid: jduke
	userPassword: <PASSWORD>

## License

* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
 
{'fraction_non_alphanumeric': 0.11605890603085554, 'fraction_numerical': 0.014025245441795231, 'mean_word_length': 3.5285714285714285, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6357220', 'n_tokens_mistral': 1061, 'n_tokens_neox': 982, 'n_words': 310}