Files
ihrm/horilla_ldap/models.py
2025-03-06 12:10:47 +05:30

14 lines
476 B
Python

from django.db import models
# Create your models here.
class LDAPSettings(models.Model):
ldap_server = models.CharField(max_length=255, default="ldap://127.0.0.1:389")
bind_dn = models.CharField(max_length=255, default="cn=admin,dc=horilla,dc=com")
bind_password = models.CharField(max_length=255)
base_dn = models.CharField(max_length=255, default="ou=users,dc=horilla,dc=com")
def __str__(self):
return f"LDAP Settings ({self.ldap_server})"