[GH-ISSUE #339] Static file backend #127

Closed
opened 2026-02-27 08:15:24 +03:00 by kerem · 2 comments
Owner

Originally created by @rlex on GitHub (Oct 18, 2022).
Original GitHub issue: https://github.com/lldap/lldap/issues/339

Hello! First of all, thanks for project.
I wonder if there is plans to implement file-based user DB?
glauth (https://github.com/glauth/glauth) have nice example (but project looks pretty much abandoned):

[backend]
  datastore = "config"
  baseDN = "dc=glauth,dc=com"
[[users]]
  name = "hackers"
  uidnumber = 5001
  primarygroup = 5501
  passsha256 = "6478579e37aff45f013e14eeb30b3cc56c72ccdc310123bcdf53e0333e3f416a"   # dogood
  sshkeys = [ "ssh-dss AAAAB3..." ]
[[users]]
  name = "uberhackers"
  uidnumber = 5006
  primarygroup = 5501
  passbcrypt = "243261243130244B62463462656F7265504F762E794F324957746D656541326B4B46596275674A79336A476845764B616D65446169784E41384F4432"   # dogood
[[groups]]
  name = "superheros"
  gidnumber = 5501

It can be useful on small install (labs, selfhosted stuff, etc). One idea is to run multiple pods in k8s reading from single configmap to achieve at least some level of HA without need for external DB.

Originally created by @rlex on GitHub (Oct 18, 2022). Original GitHub issue: https://github.com/lldap/lldap/issues/339 Hello! First of all, thanks for project. I wonder if there is plans to implement file-based user DB? glauth (https://github.com/glauth/glauth) have nice example (but project looks pretty much abandoned): ``` [backend] datastore = "config" baseDN = "dc=glauth,dc=com" [[users]] name = "hackers" uidnumber = 5001 primarygroup = 5501 passsha256 = "6478579e37aff45f013e14eeb30b3cc56c72ccdc310123bcdf53e0333e3f416a" # dogood sshkeys = [ "ssh-dss AAAAB3..." ] [[users]] name = "uberhackers" uidnumber = 5006 primarygroup = 5501 passbcrypt = "243261243130244B62463462656F7265504F762E794F324957746D656541326B4B46596275674A79336A476845764B616D65446169784E41384F4432" # dogood [[groups]] name = "superheros" gidnumber = 5501 ``` It can be useful on small install (labs, selfhosted stuff, etc). One idea is to run multiple pods in k8s reading from single configmap to achieve at least some level of HA without need for external DB.
kerem 2026-02-27 08:15:24 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@nitnelave commented on GitHub (Oct 18, 2022):

I'm having trouble relating your requirements: small deploys, but HA?
If you want small-scale stuff, then (file-based) SQLite works very well.
If you really want HA then you could have a bunch of read-only mirrors of the SQLite file and it should work fine (special master for modifications, lots of read only slaves).
But then if you want HA it seems that having a simple postgres or even MySQL would be simpler, no? LLDAP itself is stateless so you can point many to the same DB.
If that's what you want, then there's an issue for supporting other DBs

<!-- gh-comment-id:1282764407 --> @nitnelave commented on GitHub (Oct 18, 2022): I'm having trouble relating your requirements: small deploys, but HA? If you want small-scale stuff, then (file-based) SQLite works very well. If you really want HA then you could have a bunch of read-only mirrors of the SQLite file and it should work fine (special master for modifications, lots of read only slaves). But then if you want HA it seems that having a simple postgres or even MySQL would be simpler, no? LLDAP itself is stateless so you can point many to the same DB. If that's what you want, then there's an issue for supporting other DBs
Author
Owner

@nitnelave commented on GitHub (Oct 19, 2022):

(https://github.com/nitnelave/lldap/issues/87)

<!-- gh-comment-id:1283865938 --> @nitnelave commented on GitHub (Oct 19, 2022): (https://github.com/nitnelave/lldap/issues/87)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#127
No description provided.