Giter Site home page Giter Site logo

lider-ldap's Introduction

Liderahenk OpenLDAP Kullanıcı Entegrasyonu

Uygulamanın İndirilmesi

sudo apt-get install git

komutu ile git paketi yüklenir.

git clone  https://github.com/tncyclk/lider-ldap.git

Bağımlılıkların Kurulması

Uçbirimde aşağıdaki komutlar sırasıyla yazılır.

sudo apt-get install python3-pip
pip3 install ezodf lxml ldap3
 

Uygulamanın Çalıştırılması

lider-ldap dizini içinde yer alan;

  • users dosyasında bulunan kullanıcıların OpenLDAP'a aktarılması amaçlanmaktadır. users dosyası,

      uid	cn	sn	ou	                                        mail
      user1	user1	USER1	Bilgi İşlem Daire,Sistem Şube,Lider sistem	[email protected]
    

şeklinde düzenlenmelidir. Burada yer alan ou parametresi kullanıcının ou=Users altında bulunacağı hiyerarşiyi ifade etmektedir. ou parametresi örnekte gösterildiği şekliyle "," ile kullanıcı hiyerarşisinin yukarından aşağı olacak şekilde ayrılarak yazılmalıdır.

  • user_migration.py dosyasında yer alan aşağıdaki değişkenlerin varolan OpenLDAP erişim bilgilerine göre düzenlenmelidir. Burada yer alan self.base_dn, self.pwd ve self.ldap_server değişkenleri düzenlenmelidir.

      self.base_dn = "dc=example,dc=com"
      self.ldap_admin_dn = "cn=admin,"+str(self.base_dn)
      self.pwd = "secret"
      self.ldap_server = "192.168.*.*"
    
  • python3 user_migration.py komutu ile çalıştırılır.

lider-ldap's People

Contributors

tncyclk avatar

Stargazers

Ergin ALTINTAŞ avatar

Watchers

Ergin ALTINTAŞ avatar  avatar

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.