LCMAPS_JOBREP.MOD(8)
๐ LCMAPS_JOBREP.MOD(8) ๐
okay so bestie, welcome to the lcmaps_jobrep.mod page ๐
this is manual section 8, part of the plugins crew, and it's literally about the jobrepository LCMAPS plug-in. buckle up, it's giving database โจ
๐ NAME ๐
lcmaps_jobrep.mod โ the jobrepository LCMAPS plug-in ๐ซถ
๐ธ SYNOPSIS ๐ธ
lcmaps_jobrep.mod [--test] --dsn <Database Service Name> --username
<database user> --password <database password>
๐ DESCRIPTION ๐
So the LCMAPS Jobrepository plug-in stores credentials and the resulting account mappings into a relational database. It links up all the known in-process information from LCMAPS core memory and stores it in a database. And how does it talk to the database? Through ODBC (http://en.wikipedia.org/wiki/ODBC) โ that's the whole connection pipeline, iykyk.
Real talk about why this exists. The current state of the mappings between various credentials and Unix accounts is stored in an open database on disk, but this info can change over time through (regular) system administrative interventions ๐. This state is now preserved in a relational database, with the added benefit of being accessible by other systems, e.g. GridSAFE, and being able to build up an easy to backup historic view on the mapping state. obsessed.
Also? Quite some systems seem to dig up data by trawling log files, e.g. to construct accounting data records ๐. This method is subjected to the settings of the sub-systems which control the format of the log file output. And here's the thing: log trawling tools are interacting with the log files as a glorified API. That lowers the ability for tools, e.g. LCMAPS, to alter their log output ๐ญ. By offering the LCMAPS Jobrepository plug-in as an alternative โ with the added benefit of offering the data in a structured fine-grained database with the ability of an historic view โ the intend is to avoid the need and/or requirement for log file trawling. periodt.
๐ฆ DATABASE SCHEMA EXTENSIONS ๐ฆ
The schema can be used to link up account mapping and/or credential mapping results originating from other credential types, and link up more fine grained details from the specific work environment. i.e. a Gatekeeper and GridFTPd will be able to add service specific information together with the mapping results. it's giving extensible โจ
๐ฎ FUTURE ๐ฎ
Lowkey a heads up: the LCMAPS Jobrepository plug-in is currently limited to MySQL and MariaDB despite its usage of the ODBC database interface ๐. The intend is to remove this limitation and make the plug-in work with other databases, e.g. PostgreSQL, Oracle and SQLite. manifesting that for us fr fr ๐
โจ OPTIONS โจ
--testโ turn this on and the plug-in will only test if the connection to the database can be established through the ODBC coupling. The test verifies the correctness of the DSN, Username and Password combination. It'll announce an LCMAPS SUCCESS when the connection was established, and a FAILURE when it was not able to establish the connection. bestie is checking the vibes of your credentials ๐--dsn<Database Service Name> โ this selects the Data Source Name (DSN) that has been set in anodbc.inifile. Use theodbc.inifile to configure the database driver, server/host, port number and database name. There's an exampleodbc.inibelow, go look ๐--username<database username> โ specifies the database username that the LCMAPS module must use to authorize itself with the database.--password<database password> โ specifies the database password that the LCMAPS module must use to authorize itself with. You can omit the setting if you set the password in theodbc.inifile.
โ ๏ธ WARNING: Be careful to assess the read permissions on thelcmaps.dbfile to be exclusive to the service using this file, i.e. it's probably best to make the file exclusive toroot:root. no cap, protect that password like it's your main character moment ๐
๐ RETURN VALUES ๐
LCMAPS_MOD_SUCCESSโ Success ๐LCMAPS_MOD_FAILโ Failure ๐
๐ EXAMPLES ๐
Notice the --dsn <value> matches the DSN shown in the .ini section header. Also notice that the posix_enf plug-in is executed after the jobrep plug-in. The motivation is to be able to use privilege separation and with that protect the database password. iconic behavior honestly ๐ซถ
Example lcmaps.db
jobrep = "lcmaps_jobrep.mod"
"--dsn MySQL-test"
"--username root"
"--password worteltjes"
example_plugin_policy:
verifyproxy -> vomslocalgroup
vomslocalgroup -> vomspoolaccount
vomspoolaccount -> tracking_groupid
tracking_groupid -> jobrep
jobrep -> posix_enf
Example /etc/odbc.ini file:
[MySQL-test]
Description = MySQL test database
Driver = MySQL
SERVER = 127.0.0.1
PORT = 3306
DATABASE = jobrepository
๐ง SUPPORTED INSTALLATIONS ๐ง
๐ Tested front-end tools and services
gLExecglobus-gridftp-serverglobus-gatekeeper
๐ Likely to work
SCASlcmaps-rest(only the Full-SSL interface)gsi-openssh-server
๐ Front-ends that will likely NOT work
WMProxyStoRM backend
๐ฅบ LIMITATIONS ๐ฅบ
The front-ends which do not use an LCMAPS interface that provides certificates can currently not be supported. It is a requirement for the 1.5 version to be able to work from a certificate chain. so close, yet so far ๐ญ
๐ BUGS ๐
Please report any errors to the Nikhef Grid Middleware Security Team <grid-mw-security-support@nikhef.nl>. don't be shy, they wanna know ๐ซถ
๐ SEE ALSO ๐
lcmaps(8), lcmaps_jobrep.mod(8), mysql(1).
More information can be found on-line at the Nikhef Wiki on Site Access Control and the Nikhef Wiki on LCMAPS and other plug-ins. ๐ฆ
๐ AUTHORS ๐
The Jobrepository and the LCMAPS plug-ins were written by the Nikhef Grid Middleware Security Team <grid-mw-security@nikhef.nl>. absolute icons, we love them โจ
and that's the whole page bestie ๐ this one's from the LCMAPS manual, dated August 31, 2012, and it lives at LCMAPS_JOBREP.MOD(8). go map those accounts, slay ๐
๐ฆ where this page comes from
- ubuntu stonking: lcmaps-plugins-jobrep 1.5.8-1build1 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms