summaryrefslogtreecommitdiff
path: root/rust
AgeCommit message (Collapse)AuthorFilesLines
2025-11-04Remove previous himmelblau integration attemptDavid Mulder71-13937/+1
This was a project attempting to integrate Himmelblau into Samba, but it has been abandoned. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): David Mulder <dmulder@samba.org> Autobuild-Date(master): Tue Nov 4 09:09:40 UTC 2025 on atb-devel-224
2024-10-23Fix pam failure to register Pin following mfa pollDavid Mulder1-99/+102
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): David Mulder <dmulder@samba.org> Autobuild-Date(master): Wed Oct 23 15:39:09 UTC 2024 on atb-devel-224
2024-10-23Fix pam echo not displayed via sshDavid Mulder1-0/+6
Necessary because of OpenSSH bug https://bugzilla.mindrot.org/show_bug.cgi?id=2876 - PAM_TEXT_INFO and PAM_ERROR_MSG conversation not honoured during PAM authentication Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add the user's primary group to the cacheDavid Mulder2-1/+5
We create a fake primary group which simply matches the user's upn. This is because Entra ID does not have primary groups, but we can fake it with a primary group which is a member of all the users groups. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Fetch the target join os via std::env::constsDavid Mulder2-22/+8
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Properly handle read/write from the client socketDavid Mulder3-5/+66
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Ensure clients can write to the himmelblau pipeDavid Mulder1-0/+5
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Remove the existing socket if presentDavid Mulder1-3/+9
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Use the s4 param functions to access idmap valuesDavid Mulder1-50/+42
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Always print a newline at the end of debug msgsDavid Mulder1-1/+3
Otherwise the message doesn't flush to the log and could be lost when the program terminates. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add talloc stackframe handlingDavid Mulder11-25/+187
This appeases errors from libsmbconf that no talloc stackframe was created. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Fix display of function names in debugDavid Mulder1-5/+10
Rust adds some odd `{{closure}}` bits to the function name that need to be removed, otherwise the debug is unreadable. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add warnings for missing directories at runtimeDavid Mulder1-0/+22
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Only set the debug logfile if not stdoutDavid Mulder1-7/+9
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add tests for rust himmelblaud buildDavid Mulder14-11/+947
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Always normalize cache inputs to lowercaseDavid Mulder1-5/+10
This prevents mixed case issues when storing/ retrieving data from the cache. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add tests for rust dbg crateDavid Mulder5-18/+102
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add USING_SYSTEM_TDB test for rust configDavid Mulder1-0/+16
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add tests for rust chelps crateDavid Mulder1-0/+82
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Vendor the rust sources for CI testsDavid Mulder2-0/+7
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Rust WAF detect dependant files from cratesDavid Mulder1-3/+17
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Modify rust build to share target dir w/ cargo testDavid Mulder4-16/+3
The build needs to share the target directory with the cargo test command to prevent duplicate dependency downloads. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Enable rust cargo test in Samba make testDavid Mulder4-0/+7
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Adding Cargo.lock file for Rust buildDavid Mulder1-0/+2884
This ensures that all builds of this particular version of Samba will use the same Rust dependency versions. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23A Rust 'crate' is not a misspelling of 'create'David Mulder1-1/+1
Also fix a misspelling in himmelblaud main. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Introduce build option to enable HimmelblauDavid Mulder1-3/+4
The build for Himmelblau will be disabled by default. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add build config for proper TDB build linkageDavid Mulder8-2/+72
The tdb build needs to know whether Samba is building with TDB bundled or not, otherwise linking will fail. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Update libhimmelblauDavid Mulder2-2/+7
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Pam prompt for Pin if hello enrolled and enabledDavid Mulder1-10/+23
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Isolate hsm auth value from the cacheDavid Mulder4-30/+63
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Reorganize rust file treeDavid Mulder64-0/+9553
Place all rust code under samba/rust, similar to how we organize python code in the samba tree. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>