GithubHelp home page GithubHelp logo

gogs-adsync's Introduction

A windows service for synchronizing Active Directory users and groups with Gogs.

Build status

Install

Download the latest release. Then you can run GogsActiveDirectorySync.exe directly as a console application, or install it as a windows service:

GogsActiveDirectorySync.exe install

The Topshelf library is used to make this run as a windows service. So see the Topshelf commandline documentation for more details.

Configuration

The configuration for this thing is in GogsActiveDirectorySync.exe.config. There's also NLog configuration in the NLog.config.

Some AppSettings you'll probably want to change:

  • SyncIntervalHours: How often the sync runs
  • MinimumTimeOfDay, MaximumTimeOfDay: Can be used to make sure the sync only runs at night (or any interval you want)
  • GogsApiUrl: The URL to your Gogs installation's API (like https://try.gogs.io/api/v1/)
  • GogsUsername: An Gogs user with enough permissions to create users and organizations
  • GogsPassword: Set this if you want to use password authentication with the Gogs API
  • GogsAccessToken: Set this if you want to use token authentication with the Gogs API

There's more of these, but I'm tired of writing about them in this readme that no one will read. There may be more comments about them in AppConfiguration.cs.

Outside of those AppSettings, there's also a custom groupNameMappings section. This determines how things will be mapped from Active Directory to Gogs. Example:

<groupNameMappings>
	<mapping activeDirectoryGroupName="Development" gogsOrgName="Dev" />
</groupNameMappings>

You need an entry in there for every Active Directory group you want to have synchronized with a Gogs organization.

gogs-adsync's People

Contributors

22222 avatar

Stargazers

 avatar Erdong avatar

Watchers

 avatar James Cloos avatar

gogs-adsync's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.