Book Image

Gitolite Essentials

By : Sitaram Chamarty
Book Image

Gitolite Essentials

By: Sitaram Chamarty

Overview of this book

Table of Contents (19 chapters)
Gitolite Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Getting user group information from LDAP


Gitolite makes it possible to make some limited use of user data that may already be available in the enterprise.

The most common use case for this is that the enterprise already has an LDAP database that contains all the users and their roles in the organization. What the administrator would like to do is to use this information to reduce the burden of giving users rights to Gitolite repositories. It would be great if the administrator could merely specify rights in terms of group-names and Gitolite were to somehow figure out which groups a user is a member of.

Gitolite can facilitate the querying of the LDAP database and somehow acquire the information it needs. The solution involves writing a helper program, which does the following:

  • Accept one Gitolite user ID as the first (and only) argument

  • If necessary, convert this user ID in some unspecified manner to make it suitable for the LDAP query. For example, you may have to add specific components to...