summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_script.c
AgeCommit message (Collapse)AuthorFilesLines
2021-10-08idmap_script: Save a few lines with str_list_add_printf()Volker Lendecke1-38/+10
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-10-23winbindd/idmap: apply const to struct idmap_methods pointersStefan Metzmacher1-1/+1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14539 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-05-27s3: winbind: Fix crash when invoking winbind idmap scripts.Jeremy Allison1-4/+16
Previously the private context was caching a pointer to a string returned from lp_XXX(). This string can change on config file reload. Ensure the string is talloc_strup'ed onto the owning context instead. Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at> BUG: https://bugzilla.samba.org/show_bug.cgi?id=13956 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-05-24s3: lib: Rename all uses of file_pload_XXX -> file_ploadv_XXX.Ralph Boehme1-2/+2
Keep naming consistent across all usage. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13964 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-05-24s3: winbind: Convert idmap to use file_ploadv_send().Jeremy Allison1-13/+44
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13964 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-11-02idmap: Use dom_sid_str_bufVolker Lendecke1-5/+6
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2017-04-22lib: modules: Change XXX_init interface from XXX_init(void) to ↵Jeremy Allison1-1/+1
XXX_init(TALLOC_CTX *) Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
2017-03-20winbind: Use idmap_config_const_string in idmap_script_db_initVolker Lendecke1-9/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2016-09-06idmap_script: add missing "IDTOSID" argument to the script command line.Björn Baumbach1-1/+1
According to the documentation the commands should look like "IDTOSID UID xxxx" instead of "UID xxxx". This fixes changes of commit b4239ca096738f553b0f9d7fa6aaa4219b72ef7f: idmap_script: Parallelize script calls Bug: https://bugzilla.samba.org/show_bug.cgi?id=12194 Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Sep 6 19:32:57 CEST 2016 on sn-devel-144
2016-02-24idmap_script: Parallelize script callsVolker Lendecke1-188/+434
Fixes a case I've seen where a user with 200 group memberships timed out and can now log in. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Feb 24 01:17:25 CET 2016 on sn-devel-144
2016-02-23lib: Remove "includes.h" from util_file.cVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2016-02-23lib: Add "mem_ctx" to file_lines_ploadVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2015-08-20s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap;Stefan Metzmacher1-0/+1
This allows the static build of the modules. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2015-01-08Add a script-only idmap module.Richard Sharpe1-0/+394
In this third version I have cleaned up some unused variable warnings that only the Samba 3 build found and added a man page based on the idmap_tdb2 man page. I have also added support for ID_TYPE_BOTH mappings and replaced calls to popen with something safer. Also, I removed some non-PC macros. Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jan 8 04:30:32 CET 2015 on sn-devel-104