summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* nsswitch: Fix usage information of test_wbinfo_name_lookup.shChristof Schmitt2019-04-181-2/+2
| | | | | | | | Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Christof Schmitt <cs@samba.org> Autobuild-Date(master): Thu Apr 18 18:20:26 UTC 2019 on sn-devel-144
* winbind: Use domain name from lsa query for sid_to_name cache entryChristof Schmitt2019-04-182-3/+3
| | | | | | | | | | | | | | When winbindd is asked to map a name like realm.com\name to a SID ,that is sucessfully resolved through the lsa lookup name call. The same call also returns the short domain name (netbios name of the domain). Use that short domain name for the sid_to_name cache entry, so that subsequent sid_to_name queries return the expected netbiosname\name result and not realm.com\name. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13831 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* winbind: Return queried domain name from name_to_sidChristof Schmitt2019-04-189-6/+44
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13831 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* winbind: Query domain from winbind sam_name_to_sidChristof Schmitt2019-04-181-0/+2
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13831 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* winbind: Query domain from winbind rpc name_to_sidChristof Schmitt2019-04-181-1/+2
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13831 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* winbind: Query domain from msrpc name_to_sidChristof Schmitt2019-04-181-1/+2
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13831 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* nsswitch: Add testcase for checking output of wbinfo --sid-to-nameChristof Schmitt2019-04-182-0/+16
| | | | | | | | | | The username should always be returned in the DOMAISHORTNAME/USERNAME format. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13831 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* .gitlab-ci.yml: run the samba-o3 job on each working container imageStefan Metzmacher2019-04-181-7/+44
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Apr 18 13:10:49 UTC 2019 on sn-devel-144
* .gitlab-ci.yml: split AUTOBUILD_JOB_NAME from CI_JOB_NAMEStefan Metzmacher2019-04-181-2/+4
| | | | | | | This will make it easier extend the templates later. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* .gitlab-ci.yml: make use of bootstrap/.gitlab-ci.yml and use the new defined ↵Joe Guo2019-04-181-5/+34
| | | | | | | | | | | | | | | | | | | image See bootstrap/README.md for the instructions to create and upload the images via a custom gitlab ci pipeline. The key is that it's always possible to regenerate the image if it's not present in the container registry, where we are free to delete old images. But it should be possible to rebuild images if someone has the need to run a pipeline based on an old branch. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/READMD.md: update the instructions to reflect the current codeStefan Metzmacher2019-04-181-27/+56
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap: add the result of bootstrap/template.py --renderStefan Metzmacher2019-04-1856-488/+1756
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/.gitlab-ci.yml: add ci file to trigger image auto buildJoe Guo2019-04-181-0/+116
| | | | | | | | | | | | | | | | | | | | Depending on 'SAMBA_CI_REBUILD_IMAGES=yes' (and 'SAMBA_CI_REBUILD_BROKEN_IMAGES=yes') as environment variables on a custom gitlab ci pipeline we'll generate und upload container images. bootstrap/README.md will get more details in the next commits. Please note ci in this file did NOT add the `latest` tag, since we want main ci to always use a fixed image based on the sha1sum of everything under bootstrap/ from now on. This also implies the new built image will not replace/break anything. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap: remove unused docker.pyStefan Metzmacher2019-04-181-164/+0
| | | | | | | We'll generate docker images during a gitlab-ci run. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/template.py: add sha1sum supportJoe Guo2019-04-181-1/+69
| | | | | | | | | | | | 1. calc sha1sum for files under bootstrap/ (except README.md and *.pyc files) after render and write to bootstrap/sha1sum.txt file. 2. add a new option to print sha1sum, so we can use it to compare in ci Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/template.py: generate Vagrantfile just onceStefan Metzmacher2019-04-181-5/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/template.py: render locale.sh for each dist and make shell scripts ↵Joe Guo2019-04-181-1/+3
| | | | | | | | executable Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: generate rendered files into bootstrap/generated-dists/Stefan Metzmacher2019-04-181-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: add a hind how to rebuild generated filesStefan Metzmacher2019-04-181-1/+20
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: Add openSUSE Leap 15.0Samuel Cabrero2019-04-181-0/+46
| | | | | | Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: Create the 'samba' group in containersSamuel Cabrero2019-04-181-1/+1
| | | | | | Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: Fix lmdb-utils package name for RPM familySamuel Cabrero2019-04-181-1/+1
| | | | | | Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: Use generic lsb-release package nameSamuel Cabrero2019-04-181-1/+9
| | | | | | Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: Add gzip, which and hostname to base packagesSamuel Cabrero2019-04-181-1/+3
| | | | | | | | The openSUSE Leap 15.0 container does not include gzip and which Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: add libicu-dev/libicu-develRalph Boehme2019-04-181-0/+1
| | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: add glib2-devRalph Boehme2019-04-181-0/+1
| | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: add patch, rsync and tarStefan Metzmacher2019-04-181-0/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: link ld to ld.gold when availableJoe Guo2019-04-181-0/+3
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: add ARG in Dockerfile to allow add sha1sum into docker ↵Joe Guo2019-04-181-0/+4
| | | | | | | | | | image Add ARG SHA1SUM, then we can pass it to docker build with --build-arg Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: rm ENV for ccache since we didn't use it any moreJoe Guo2019-04-181-3/+0
| | | | | | | | When ccache is not installed, this will cause failure. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: add missing dev packagesJoe Guo2019-04-181-0/+5
| | | | | | | | Add a few extra dev packages missing in current ci image but should be included. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: adjust package list to align current ci imageJoe Guo2019-04-181-14/+30
| | | | | | | | | Adjust packages to make `dpkg -l` output align current ci image. The ones not required are ignored, add a few missing python3 ones. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: change UTF-8 to utf8 for locale name in Dockerfile ENVJoe Guo2019-04-181-1/+1
| | | | | | | | | While generating locales, glibc/localedef/locale-gen will normalize `UTF-8` to `utf8`, use same name style to avoid string mismatch issues. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/config.py: mv locale setup from bootstrap.shJoe Guo2019-04-181-36/+55
| | | | | | | | | | | | | | | | | In future, samba developers could run `bootstrap.sh` to update dependencies on their workstation, this is very useful when new people get on board or new dependencies introduced. But currenly it will override locale, which is not expected for this case. Remove locale setup cmds from bootstrap.sh, add a separate script for this. Although this script is written in a generic way and has no variable so far, still follow the same routine as `bootstrap.sh` to keep consistent. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* .gitlab-ci.yml: require samba-ci-private tag for our private runnersStefan Metzmacher2019-04-161-0/+1
| | | | | | | | | | This makes it more clear that we need our own private runners. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue Apr 16 17:45:35 UTC 2019 on sn-devel-144
* .gitlab-ci.yml: remove outdated commentsStefan Metzmacher2019-04-161-4/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* .gitlab-ci.yml: run samba-schemaupgrade on the private runnerStefan Metzmacher2019-04-161-3/+3
| | | | | | | | | | | The related jobs often fail with timeouts because the shared runners (4GB RAM + 2GB SWAP) will use ~450MB of the swapfile. The private runners use 8GB RAM without any swap. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* lib/replace: define NAME_MAX for platforms that don't have itGünther Deschner2019-04-161-0/+4
| | | | | | | | | | | | | | This allows the vfs_glusterfs_fuse build to complete on AIX. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13872 Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Apr 16 15:14:50 UTC 2019 on sn-devel-144
* smbd: Remove share_mode_lease and the leases array from share_mode_entryVolker Lendecke2019-04-146-207/+8
| | | | | | | | | | This also removes the temporary functions introduced during the patchset. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Autobuild-User(master): Christof Schmitt <cs@samba.org> Autobuild-Date(master): Sun Apr 14 05:18:14 UTC 2019 on sn-devel-144
* smbd: Use share_mode_forall_leases in share_mode_cleanup_disconnected()Volker Lendecke2019-04-141-8/+31
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Use share_mode_forall_leases in do_break_to_none()Volker Lendecke2019-04-141-36/+55
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Use share_mode_forall_leases in rename_share_filename()Volker Lendecke2019-04-141-22/+33
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Add share_mode_forall_leases()Volker Lendecke2019-04-142-0/+80
| | | | | | | | Function to walk all leases for a file exactly once. This used to be simpler with the leases[] array, thus this function that encapsulates the complexity. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Use leases_db in lease_match()Volker Lendecke2019-04-141-4/+21
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Make find_share_mode_lease() staticVolker Lendecke2019-04-142-6/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Use leases_db in process_oplock_break_message()Volker Lendecke2019-04-141-59/+78
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Use leases_db in vfs_default_durable_reconnect()Volker Lendecke2019-04-141-17/+31
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Use leases_db in downgrade_lease()Volker Lendecke2019-04-141-60/+72
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Use leases_db in try_lease_upgrade()Volker Lendecke2019-04-141-22/+38
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* smbd: Split up grant_fsp_lease()Volker Lendecke2019-04-141-76/+100
| | | | | | | Simple refactoring into simpler routines. View best with "git show -b" Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>