Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
ad79ea58
Verified
Commit
ad79ea58
authored
4 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
complete the source code review
parent
14683cc5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/ldap.md
+27
-21
27 additions, 21 deletions
howto/ldap.md
with
27 additions
and
21 deletions
howto/ldap.md
+
27
−
21
View file @
ad79ea58
...
...
@@ -408,12 +408,16 @@ See also: <https://gitlab.torproject.org/tpo/tpa/team/-/issues/33766>
### Source file analysis
TODO: document those tools.
Those are the various scripts shipped by userdir-ldap. This table
describes which programming language it's written in and a short
description of its purpose. The
`ud?`
column documents whether the
command was considered for implementation in ud, and gives us a hint
on whether it is important or not.
| tool | lang | ud? | description |
| ------------------------- | ------ | --- | --------------------------------------------------------------- |
|
`ud-arbimport`
| Python | |
possible example of direct LDAP (write) access from Python
|
|
`ud-config`
| Python | | prints config from
`userdir-ldap.conf`
, used by ud-replicate
|
|
`ud-arbimport`
| Python | |
import arbitrary entries into LDAP
|
|
`ud-config`
| Python | | prints config from
`userdir-ldap.conf`
, used by
`
ud-replicate
`
|
|
`ud-echelon`
| Python | x | "Watches for email activity from Debian Developers" |
|
`ud-fingerserv`
| Perl | x |
[
finger(1)
][]
server to expose some (public) user information |
|
`ud-fingerserv2.c`
| C | | same in C? |
...
...
@@ -442,24 +446,6 @@ TODO: document those tools.
|
`ud-xearth`
| Python | | generates xearth DB from LDAP entries |
|
`ud-zoneupdate`
| Shell | x | increments serial on a zonefile and reload bind |
The
`ud?`
column documents whether the command was considered for
implementation in ud, and gives us a hint on whether it is important
or not.
| libraries | lang | description |
| ----------------------- | ------ | -------------------------------------------- |
|
`UDLdap.py`
| Python | mainly an Account representation |
|
`userdir_exceptions.py`
| Python | exceptions |
|
`userdir_gpg.py`
| Python | yet another GnuPG Python wrapper |
|
`userdir_ldap.py`
| Python | various functions to talk with LDAP and more |
| configuration files | lang | description |
| ---------------------------- | ------ | ----------------------------------------------------------------------- |
|
`userdir-ldap.conf`
| Python | LDAP host, admin user, email, logging, keyrings, web, DNS, MX, and more |
|
`userdir_ldap.pth`
| ??? | no idea! |
|
`userdir-ldap.schema`
| LDAP | TPO/Debian-specific LDAP schema additions |
|
`userdir-ldap-slapd.conf.in`
| slapd | slapd configuration, includes LDAP access control |
Note how the
`ud-guest-upgrade`
command works. It generates an LDAP
snippet like:
...
...
@@ -477,6 +463,26 @@ where the `guest` gid is replaced by the "default" `defaultgroup`
set in the
`userdir-ldap.conf`
file.
[
finger(1)
]:
https://manpages.debian.org/finger.1
Those are other files in the source distribution which are not
directly visible to users but are used as libraries by other files.
| libraries | lang | description |
| ----------------------- | ------ | -------------------------------------------- |
|
`UDLdap.py`
| Python | mainly an Account representation |
|
`userdir_exceptions.py`
| Python | exceptions |
|
`userdir_gpg.py`
| Python | yet another GnuPG Python wrapper |
|
`userdir_ldap.py`
| Python | various functions to talk with LDAP and more |
Those are the configuration files shipped with the package:
| configuration files | lang | description |
| ---------------------------- | ------ | ----------------------------------------------------------------------- |
|
`userdir-ldap.conf`
| Python | LDAP host, admin user, email, logging, keyrings, web, DNS, MX, and more |
|
`userdir_ldap.pth`
| ??? | no idea! |
|
`userdir-ldap.schema`
| LDAP | TPO/Debian-specific LDAP schema additions |
|
`userdir-ldap-slapd.conf.in`
| slapd | slapd configuration, includes LDAP access control |
### References
*
[
userdir-ldap source code
](
https://salsa.debian.org/dsa-team/mirror/userdir-ldap
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment