-
Notifications
You must be signed in to change notification settings - Fork 440
Installing a local LDAP server
Björn Geuken edited this page Aug 16, 2017
·
6 revisions
It can be useful to run your local OBS instance on a locally installed LDAP server for testing and feature development.
- Install required packages:
sudo zypper in yast2-ldap-server openldap2-client
- Configure LDAP in yast:
sudo yast
-
Go to Network Services -> Authentication Server
-
Configure Basic Database Settings:
-
Base DN: dc=local
-
Enter LDAP Administrator Password
-
- Create an ldiff file for admin: admin.ldif
dn: cn=John Smith,dc=local
objectClass: inetOrgPerson
cn: John Smith
sn: John
mail: [email protected]
- Create the admin user account: (Enter the password from step 2)
ldapadd -x -W -D "cn=Administrator,dc=local" -f admin.ldif
- Set a password for the admin user: (Enter John's password twice then enter the password from step 2)
ldappasswd -xD "cn=Administrator,dc=local" -W -S "cn=John Smith,dc=local"
- Update your
config/options.yml
file to include these options:
ldap_mode: :on
ldap_authenticate: :ldap
ldap_servers: localhost
ldap_ssl: :off
ldap_start_tls: :off
ldap_referrals: :off
ldap_search_base: dc=local
ldap_search_attr: sn
ldap_name_attr: cn
ldap_mail_attr: mail
ldap_search_user: "cn=Administrator,dc=local"
ldap_search_auth: "pass"
- Start the server and try logging in with username "John" and the password you set in step 5
- Development Environment Overview
- Development Environment Tips & Tricks
- Spec-Tips
- Code Style
- Rubocop
- Testing with VCR
- Authentication
- Authorization
- Autocomplete
- BS Requests
- Events
- ProjectLog
- Notifications
- Feature Toggles
- Build Results
- Attrib classes
- Flags
- The BackendPackage Cache
- Maintenance classes
- Cloud uploader
- Delayed Jobs
- Staging Workflow
- StatusHistory
- OBS API
- Owner Search
- Search
- Links
- Distributions
- Repository
- Data Migrations
- next_rails
- Ruby Update
- Rails Profiling
- Installing a local LDAP-server
- Remote Pairing Setup Guide
- Factory Dashboard
- osc
- Setup an OBS Development Environment on macOS
- Run OpenQA smoketest locally
- Responsive Guidelines
- Importing database dumps
- Problem Statement & Solution
- Kickoff New Stuff
- New Swagger API doc
- Documentation and Communication
- GitHub Actions
- How to Introduce Software Design Patterns
- Query Objects
- Services
- View Components
- RFC: Core Components
- RFC: Decorator Pattern
- RFC: Backend models