{"id":16406301,"url":"https://github.com/alerque/diradm","last_synced_at":"2025-02-23T21:21:48.926Z","repository":{"id":15059958,"uuid":"17786155","full_name":"alerque/diradm","owner":"alerque","description":"a simple bash script for managing posix users and groups stored in a LDAP directory","archived":false,"fork":false,"pushed_at":"2014-03-15T22:27:16.000Z","size":144,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T15:36:26.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"candrews/hammertime","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alerque.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-15T21:43:03.000Z","updated_at":"2016-02-01T08:06:29.000Z","dependencies_parsed_at":"2022-07-16T03:16:17.150Z","dependency_job_id":null,"html_url":"https://github.com/alerque/diradm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alerque%2Fdiradm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alerque%2Fdiradm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alerque%2Fdiradm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alerque%2Fdiradm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alerque","download_url":"https://codeload.github.com/alerque/diradm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240380371,"owners_count":19792285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T06:09:27.713Z","updated_at":"2025-02-23T21:21:48.885Z","avatar_url":"https://github.com/alerque.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"DIRADM README\n=============\n\nWhat is diradm?\n---------------\n\ndiradm is a simple bash script for managing posix users and groups stored\nin a LDAP directory, offering the same features as the traditional passwd\nfile utilities useradd/usermod/userdel and groupadd/groupmod/groupdel.\nIt uses the utils ldapsearch, ldapadd, ldapmodify and ldapdelete from the\nOpenLDAP project (http://www.openldap.org/) to perform the needed queries\nagainst the LDAP database.\n\n\nInstallation\n------------\n\nJust copy the script itself (diradm) to a location you want it to reside\n(usually /usr/local/sbin or somewhere else within your path), then take a\nlook at the configuration file (diradm.conf), adjust it to your needs and\ncopy it to an appropriate location as well.\nBy default diradm will search for its config at /etc/diradm.conf, but its\nbehaviour can be changed by editing the script and adjusting the variable\nCONFIG.\n\n\nHow do I use it?\n----------------\n\nIf you know the usage of the traditional password file maintainance tools\nuseradd/usermod/userdel and groupadd/groupmod/groupdel, you are ready to\nuse diradm. Its first command line parameter tells it which operation to\nperform, taking exactly the same options as its \"flat file equivalent\".\nE.g. \"diradm useradd -m -c \"Testuser\" -g group1 -G group2,group3 testusr\"\nFor further information on these command line options please take a look\nat the man pages of useradd/usermod/userdel \u0026 groupadd/groupmod/groupdel.\n\nThe are two additional parameters in comparison to the traditional passwd\ntools. One of them is \"-h\", which you can use to set the \"host\" attribute\nof a user. This attribute can be used by pam_ldap to determine wether the\nuser has access to a system. The usage is the same as for \"-G\" (groups).\nThe other one is \"-n\" (only for useradd), which reverses the value of the\nvariable USERGROUPS in the configuration file. If this variable is set to\n\"yes\", a group with the same name as the user (and, if possible, same ID\nnumber) will be created by useradd. The variable also enables userdel to\nremove user groups if no members exist. If USERGROUPS is unset, \"no\" is\nassumed.\n\n\nBug reports\n-----------\n\nIf you should find a bug, please send a report to \u003cdan@hits.at\u003e.\n\n\nCopyright\n---------\n\nCopyright (C) 2003-2004 Daniel Himler \u003cdan@hits.at\u003e\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falerque%2Fdiradm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falerque%2Fdiradm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falerque%2Fdiradm/lists"}