Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sammcj/LDAP-Self-Service
Web Based LDAP Self Service Portal
https://github.com/sammcj/LDAP-Self-Service
Last synced: 5 days ago
JSON representation
Web Based LDAP Self Service Portal
- Host: GitHub
- URL: https://github.com/sammcj/LDAP-Self-Service
- Owner: sammcj
- License: gpl-2.0
- Archived: true
- Created: 2014-09-18T01:57:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T14:39:47.000Z (over 1 year ago)
- Last Synced: 2024-08-01T12:27:49.304Z (3 months ago)
- Language: HTML
- Size: 184 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - sammcj/LDAP-Self-Service - Web Based LDAP Self Service Portal (others)
README
LDAP Self Service
====A small web based LDAP self-service portal
[![Code Climate](https://codeclimate.com/github/sammcj/LDAP-Self-Service/badges/gpa.svg)](https://codeclimate.com/github/sammcj/LDAP-Self-Service)
### Requirements
* sinatra
* net-ldap
* thinTested with Ruby 2.1.1
### Configuration
Enter your ldap settings in ldap.yml
The required settings are:
```
host: your.ldap.server.com
base: ou=People,dc=ldap,dc=server,dc=com
port: 636
encryption: simple_tls
attrs: dn
```### Install
```
bundle install
thin install
ln -s thin.yml /etc/thin/ldapss.yml
/etc/init.d/thin start
```Note: You may start the application interactively by running:
```ruby app.rb```Note: Designed to have nginx with SSL proxying back to the app on localhost:4567
### Screenshot
![screenshot](https://cloud.githubusercontent.com/assets/862951/4314679/666fcfec-3ee4-11e4-825f-03dc2a6b1f6f.png)
### Puppet
You can deploy with puppet with *something* kind of like this:
```
vcsrepo { '/var/vhost/selfservice':
ensure => latest,
provider => git,
source => '[email protected]:ldap-self-service.git',
require => File['/var/vhost'],
notify => Exec['ldap-bundle']
}exec { 'ldap-bundle':
command => 'cd /var/vhost/selfservice && bundle install',
refreshonly => true,
notify => Exec['thin-install'],
}exec { 'thin-install':
command => 'cd /var/vhost/selfservice && thin install',
refreshonly => true,
}file { '/etc/thin/ldapss.yml':
ensure => link,
target => '/var/vhost/selfservice/thin.yml'
}service { 'thin':
enable => true,
ensure => running,
hasrestart => true,
hasstatus => true,
require => File['/etc/thin/ldapss.yml'],
}ixanginx::reverseproxy { 'selfservice.yourcompany.com':
proxy_passthrough => 'http://localhost:4567',
ssl => true,
crt_name => 'wildcard.yourcompany.com.crt',
key_name => 'wildcard.yourcompany.com.key',
}
```