Günther Deschner
1fba8c8019
Let libnetapi use it's own krb5 cred cache in memory if necessary.
...
Guenther
(This used to be commit 863fb30038
)
2008-01-07 20:12:38 +01:00
Günther Deschner
d66118629c
Add libnet_join_find_machine_acct().
...
Guenther
(This used to be commit f550ed02ff
)
2008-01-07 19:39:35 +01:00
Günther Deschner
5b5f17a81d
Honor the WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag when unjoining from AD.
...
Guenther
(This used to be commit ed164b523e
)
2008-01-07 19:39:21 +01:00
Günther Deschner
0bbc04d516
Rearrange libnet join code and add support for account pre-creation in AD.
...
Guenther
(This used to be commit 18ae858042
)
2008-01-07 19:39:11 +01:00
Günther Deschner
60555e66dd
Add ADS_STRUCTs to libnetjoin and -unjoin, with talloc destructors.
...
Guenther
(This used to be commit 985d452069
)
2008-01-07 19:38:59 +01:00
Günther Deschner
077eaafed5
Add error_string to libnetjoin and libnetunjoin structures incl. set functions.
...
Guenther
(This used to be commit 4f9985bb33
)
2008-01-07 19:38:48 +01:00
Günther Deschner
528d253cc8
Rearrange order of libnet join context init.
...
Guenther
(This used to be commit 89669c66f2
)
2008-01-07 19:38:35 +01:00
Günther Deschner
0b92d8bc79
Free libnet_JoinCtx after joining.
...
Guenther
(This used to be commit 5abae9ef15
)
2008-01-07 19:38:22 +01:00
Günther Deschner
cc1982ab1c
Close registry in libnetapi_free().
...
Guenther
(This used to be commit e7258a4408
)
2008-01-07 19:38:10 +01:00
Günther Deschner
fa1e5e95d5
Add NET_API_STATUS_SUCCESS define.
...
Guenther
(This used to be commit a72ad63163
)
2008-01-07 19:37:54 +01:00
Michael Adam
327cc04da5
Remove redundant parameter fd from SMB_VFS_KERNEL_FLOCK().
...
Michael
(This used to be commit 195c519377
)
2008-01-07 17:14:20 +01:00
Michael Adam
f6cac02f00
Fix wrong unused opaque macro for kernel_flock().
...
Michael
(This used to be commit 5c01309a2b
)
2008-01-07 16:59:10 +01:00
Michael Adam
edd30e716f
Remove redundant parameter fd from SMB_VFS_LOCK().
...
Michael
(This used to be commit 4f3ab2c406
)
2008-01-07 16:38:23 +01:00
Michael Adam
299d24dbc1
Fix the build: Fix caller of strict_allocate_ftruncate().
...
Michael
(This used to be commit 20691272a1
)
2008-01-07 16:12:03 +01:00
Michael Adam
b457b94bb8
Remove redundant parameter fd from SMB_VFS_FTRUNCATE().
...
Michael
(This used to be commit 2ad66050a0
)
2008-01-07 15:59:02 +01:00
Michael Adam
670909cb07
Remove redundant parameter fd from SMB_VFS_FCHOWN().
...
Michael
(This used to be commit fbb193db3e
)
2008-01-07 15:59:02 +01:00
Michael Adam
e614dec27f
Remove redundant parameter fd from SMB_VFS_FCHMOD().
...
Michael
(This used to be commit a54d5604da
)
2008-01-07 15:59:02 +01:00
Michael Adam
87a684f7fc
Remove redundant parameter fd from SMB_VFS_FSTAT().
...
Michael
(This used to be commit 0b86c420be
)
2008-01-07 15:59:01 +01:00
Michael Adam
8dcce0d236
Remove redundant parameter fd from SMB_VFS_FSYNC().
...
Michael
(This used to be commit 8f83c9a7b2
)
2008-01-07 15:59:01 +01:00
Michael Adam
6f657c873e
Remove redundant parameter fd from SMB_VFS_LSEEK().
...
Michael
(This used to be commit df929796f2
)
2008-01-07 15:59:01 +01:00
Michael Adam
a56b417809
Remove redundant parameter fd from SMB_VFS_PWRITE().
...
Michael
(This used to be commit 8c4901a19a
)
2008-01-07 15:59:01 +01:00
Günther Deschner
cab9aa525d
Fix build warning.
...
Guenther
(This used to be commit 73233a06d6
)
2008-01-07 14:53:16 +01:00
Günther Deschner
02f67cfcfa
Add free_local_machine_name().
...
Guenther
(This used to be commit f3ebb4f96b
)
2008-01-07 14:53:07 +01:00
Günther Deschner
be7df54c39
Fix two memleaks in libnetapi.
...
Guenther
(This used to be commit d73bde99e8
)
2008-01-07 12:48:21 +01:00
Günther Deschner
c0d33508ff
Add secrets_shutdown().
...
Guenther
(This used to be commit dd3fbd93b6
)
2008-01-07 12:48:21 +01:00
Günther Deschner
68ec314277
In gfree_debugsyms() free the format_bufr as well.
...
Guenther
(This used to be commit 48f09ca376
)
2008-01-07 12:48:21 +01:00
Günther Deschner
e6c3ac59c5
Failure while unjoining a domain is non-critical.
...
Just continue joining to the workgroup in that case.
Guenther
(This used to be commit bf9ce2a928
)
2008-01-07 12:48:21 +01:00
Günther Deschner
6345220151
Only create machine account in libnetjoin when requested to.
...
Guenther
(This used to be commit bc025a3860
)
2008-01-07 12:48:21 +01:00
Michael Adam
d82702c218
Use the proper boolean constants.
...
Michael
(This used to be commit 6f673b7f10
)
2008-01-07 11:27:54 +01:00
Michael Adam
0818d41697
Fix a comment.
...
Michael
(This used to be commit 62d6d4fff2
)
2008-01-07 11:19:27 +01:00
Michael Adam
696cf4d3c0
Make wcache_invalidate_cache() return bool, not int.
...
Michael
(This used to be commit dba24ceae7
)
2008-01-07 10:59:14 +01:00
Michael Adam
c4d3f1b0f5
Add some braces to if statement.
...
Michael
(This used to be commit 66fc1db1d1
)
2008-01-07 10:41:09 +01:00
Andreas Schneider
18699d003b
Prevent winbindd from segfaulting due to corrupted cache tdb.
...
If we try to flush the caches and due to a corrupted tdb we and have no tdb
context close the tdb and validate it. Initialize the cache afterwards again.
(This used to be commit d0c0f91fb9
)
2008-01-07 10:24:34 +01:00
Michael Adam
ca275e2549
Remove unneeded parameter fd from SMB_VFS_PREAD().
...
Michael
(This used to be commit 73e28806ce
)
2008-01-07 00:14:19 +01:00
Michael Adam
05352cf2cb
Remove superfluous parameter fd from SMB_VFS_FSET_NT_ACL().
...
Michael
(This used to be commit 4f2d139a18
)
2008-01-06 23:08:00 +01:00
Michael Adam
b55171c1d7
Wrap lines for readability.
...
Michael
(This used to be commit 8fce247bcf
)
2008-01-06 23:08:00 +01:00
Michael Adam
ee24c629a6
Remove superfluous fd parameter from SMB_VFS_FGET_NT_ACL().
...
Michael
(This used to be commit c0c7c1223d
)
2008-01-06 23:07:59 +01:00
Michael Adam
ac8659232b
Remove vlp.o in make clean.
...
Michael
(This used to be commit 020ed731b1
)
2008-01-06 22:50:38 +01:00
Jelmer Vernooij
8dbeca6e9d
Review feedback from metze.
...
(This used to be commit 015cf6b6ad
)
2008-01-06 15:12:24 +01:00
Jelmer Vernooij
1f46aac357
Use metze's approach.
...
(This used to be commit 126cc07599
)
2008-01-06 01:12:56 +01:00
Jelmer Vernooij
aaa2770666
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit 5a30f6377d
)
2008-01-05 23:09:38 +01:00
Jelmer Vernooij
3ba8fbef29
selftest: Use platform-specific equivalents of LD_LIBRARY_PATH for Samba4's smbtorture.
...
(This used to be commit 64ff1dad86
)
2008-01-05 23:09:25 +01:00
Steve French
56a8ef0bbb
Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
...
(This used to be commit d3b91e494c
)
2008-01-05 14:51:23 -06:00
Jeremy Allison
4a413e4bd1
Fix %d / size_t printf arg missmatch.
...
Jeremy.
(This used to be commit 3e3205309b
)
2008-01-05 01:17:33 -08:00
Jeremy Allison
3d7a8a9fa1
Fix missing return - should be void.
...
Jeremy.
(This used to be commit 45ae90b77e
)
2008-01-05 01:16:09 -08:00
Jeremy Allison
af2a75ba61
Add -e to smbget.
...
Jeremy.
(This used to be commit 0475bdcf44
)
2008-01-05 00:51:50 -08:00
Jeremy Allison
1be3fcbf2f
Add the options smb_encrypt_level to set the requested
...
encrypt level and smb_encrypt_on to query it.
Jeremy.
(This used to be commit 07d47996f9
)
2008-01-05 00:51:18 -08:00
Jeremy Allison
a41972e801
Fix -e for smbcquotas.
...
Jeremy.
(This used to be commit f97b1247c1
)
2008-01-05 00:50:03 -08:00
Jeremy Allison
722d288d21
Use the common -e option not the custom one.
...
Jeremy.
(This used to be commit ef1bbcdfb9
)
2008-01-05 00:46:04 -08:00
Jeremy Allison
160fefc71a
Fix args to cli_force_encryption.
...
Jeremy.
(This used to be commit 7b0826aeec
)
2008-01-05 00:41:48 -08:00
Jeremy Allison
9baa97a46e
Add general '-e' option to enable smb encryption
...
on tools.
Jeremy.
(This used to be commit 757653966f
)
2008-01-05 00:23:35 -08:00
Jeremy Allison
4881ed00ca
More logical operation on bool.
...
Jeremy.
(This used to be commit 7e8e91aeb3
)
2008-01-04 23:26:47 -08:00
Jeremy Allison
99e349b35d
More logical operations on booleans. IBM checker.
...
Jeremy.
(This used to be commit e289a0c859
)
2008-01-04 23:24:15 -08:00
Jeremy Allison
c6a2292724
Using a bool with a logical operation. IBM checker caught.
...
Jeremy.
(This used to be commit 7f9fe7da1e
)
2008-01-04 23:17:38 -08:00
Jeremy Allison
d5bd2e7000
Can't use logical operations on boolean values.
...
Jeremy.
(This used to be commit 34cd9b5b51
)
2008-01-04 22:56:06 -08:00
Jeremy Allison
e86fd65dcd
"Desting" -> "Testing"
...
Jeremy.
(This used to be commit c3f3ec5cd5
)
2008-01-04 19:34:43 -08:00
Jeremy Allison
4a95b17fd8
Try and fix scripting errors.
...
Jeremy
(This used to be commit c84f2234fe
)
2008-01-04 19:12:29 -08:00
Jeremy Allison
ceba96c915
Try and fix the buildfarm. There's a scripting error and
...
I'm hoping this is it...
Jeremy.
(This used to be commit 0356f0efc4
)
2008-01-04 19:09:46 -08:00
Jeremy Allison
01afb07321
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit 3a45f62310
)
2008-01-04 19:06:37 -08:00
Jeremy Allison
3d40b197b0
Add missing patch to allow smbcacls to do krb5 auth, bug #5175
...
from Tom Maher <tmaher@watson.org>.
Jeremy.
(This used to be commit 54ee718957
)
2008-01-04 17:15:04 -08:00
Jeremy Allison
c513ff3675
Better way of testing enc.
...
Jeremy.
(This used to be commit c580023501
)
2008-01-04 16:58:23 -08:00
Jeremy Allison
95fa10d596
Added -e tests for S3 smbtorture.
...
Jeremy.
(This used to be commit deeeae3ee9
)
2008-01-04 16:09:48 -08:00
Jeremy Allison
71a24317fe
Added -e option to smbtorture to test encrypted versions
...
of the tests.
Jeremy.
(This used to be commit e85b346f3d
)
2008-01-04 16:09:24 -08:00
Jeremy Allison
29562987c3
Now conn is part of smb_request, we don't need it as
...
an extra parameter. This cleans up quite a few places
we were passing it around without needing it.
Jeremy.
(This used to be commit 8f36def18e
)
2008-01-04 15:37:24 -08:00
Jeremy Allison
058ba641f3
Fix idle client reading keepalive.
...
Jeremy.
(This used to be commit 4ce0bf7856
)
2008-01-04 14:56:56 -08:00
Jeremy Allison
9394916e49
We dont' modify the smb header for crypto anymore.
...
Jeremy.
(This used to be commit f5b6b6dac6
)
2008-01-04 14:43:43 -08:00
Volker Lendecke
a8d2664fec
allocate share_mode_str only when needed
...
(This used to be commit a98693bfa7
)
2008-01-04 23:32:24 +01:00
Günther Deschner
395c366237
Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.
...
Guenther
(This used to be commit fe75e5ccdf
)
2008-01-04 23:03:55 +01:00
Jeremy Allison
3aea92c97f
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit 4e1bf48e7e
)
2008-01-04 13:59:52 -08:00
Jeremy Allison
6503c7338e
Fix interesting bug found with make valgrindtest. When cancelling
...
a lock due to file closure make sure we null out the fsp pointer
so it isn't dangling. This is an old bug (not related to the new
changes).
Jeremy.
(This used to be commit b5ee972b0c
)
2008-01-04 13:59:26 -08:00
Michael Adam
4aba7475ef
Re-Indent function ldap_open_with_timeout().
...
This reverts commit #cafda34783f0961c9b463803c19cfcb69f836e3f .
I just learned (the hard way) that these indeted functions
are not indented by accident but that the intention of this
is to not include the prototype into proto.h.
Michael
(This used to be commit 2e5d01b214
)
2008-01-04 22:56:10 +01:00
Jeremy Allison
fadf9cc1ca
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit 3a62a177ba
)
2008-01-04 13:24:41 -08:00
Jeremy Allison
68b2965108
Fix the build.
...
Jeremy.
(This used to be commit 25a0084af5
)
2008-01-04 13:24:24 -08:00
Michael Adam
b54310cbaa
Add a debug message (when the LDAP server has really been connected).
...
Michael
(This used to be commit 7d9d2de390
)
2008-01-04 22:09:36 +01:00
Michael Adam
2cb68e3898
Untangle assignment and result check.
...
Michael
(This used to be commit 465a3b356c
)
2008-01-04 22:09:36 +01:00
Michael Adam
34e579fce5
Enhance DEBUG-verbosity of ldap_open_with_timeout().
...
Michael
(This used to be commit 9e70d1f24d
)
2008-01-04 22:09:36 +01:00
Michael Adam
4ad3464fb9
Unindent function header.
...
Michael
(This used to be commit cafda34783
)
2008-01-04 22:09:35 +01:00
Michael Adam
3f42428f9b
Fix a misleading DEBUG message.
...
At this stage, the (tcp) connection to the LDAP server has not
been established, this is what is about to be attempted. What
has been succesfully done, is a CLDAP netlogon query.
Michael
(This used to be commit 71c3c8ad4c
)
2008-01-04 22:09:35 +01:00
Jeremy Allison
e49c28e604
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
...
(This used to be commit 16224e8f4f
)
2008-01-04 12:59:36 -08:00
Jeremy Allison
9254bb4ef1
Refactor the crypto code after a very helpful conversation
...
with Volker. Mostly making sure we have data on the incoming
packet type, not stored in the smb header.
Jeremy.
(This used to be commit c4e5a50504
)
2008-01-04 12:56:23 -08:00
Michael Adam
2f195e52fa
Fix a DEBUG statement.
...
Michael
(This used to be commit 18360b852c
)
2008-01-04 21:35:29 +01:00
Michael Adam
517ad5318d
Fix spacing - spaces mixed with tabs.
...
Michael
(This used to be commit a4ef828102
)
2008-01-04 21:16:48 +01:00
Michael Adam
dbdaa5eeec
Fix a comment.
...
Michael
(This used to be commit fc9c3f39b5
)
2008-01-04 21:09:55 +01:00
Michael Adam
dee8e32d8d
Remove the word "registry" from the help output of the "net conf" command.
...
Michael
(This used to be commit 8d9e3e08f3
)
2008-01-04 21:05:59 +01:00
Michael Adam
34fb783965
Update the introductory comment to net_conf.c to mention linbet_conf.
...
Michael
(This used to be commit e166b88637
)
2008-01-04 21:05:59 +01:00
Gerald (Jerry) Carter
84a50e2154
Fix the inherited trust flags when spidering the trust heirarchy.
...
Also *do not* clear the trust list when rescanning or else it is possible
to suffer from a race condition where no trusted domains can be found.
(This used to be commit e7164a252b
)
2008-01-04 13:35:41 -06:00
Gerald (Jerry) Carter
4093b0632c
Add a missing check for dealing with a one-way trust in query_user().
...
(This used to be commit f89e356bda
)
2008-01-04 13:34:10 -06:00
Gerald (Jerry) Carter
bcc2a6a9d7
Ensure that winbindd_getgroups() can deal with a UPN name.
...
A user logging in via GDM was not getting a complete list of supplementary
groups in his/her token. This is because getgroup() was not able to
find the winbindd_domain* using the DNS name. Fallback to matching the DNS
name is the short name match failes.
(This used to be commit 2030a8de19
)
2008-01-04 13:32:58 -06:00
Gerald (Jerry) Carter
9a45dcef4d
When connecting to an AD DC, use the DsGetDCName variant.
...
This allows us to deal with child domains in transitive forest trusts.
It also allows us to fill in the forest name to the target domain to the
struct winbindd_domain *.
(This used to be commit ed30516bb0
)
2008-01-04 13:31:07 -06:00
Michael Adam
f215dec831
Map WERR_NO_SUCH_SERVICE with dos_errstr().
...
Michael
(This used to be commit df5839b537
)
2008-01-04 19:58:19 +01:00
Michael Adam
b1472c0956
Remove the final regdb_close() from net_conf.c
...
This is to hide the registry from net_conf.
Right now, it does not harm if "net conf" does not close
the registry file explicitly just before exiting.
I am working out a proper way of handling open/close
operations transparently in the libnet_conf library.
Michael
(This used to be commit 790ef78944
)
2008-01-04 19:52:22 +01:00
Michael Adam
2a8722d4c3
Fix the behaviour of "net conf setparm" to create the share if necessary.
...
This moves functionality taken away from libnet_conf_set_parameter() to the
higher level user frontend function. (Somehow I thought I had done this
already ... :-)
Michael
(This used to be commit fc0fca980f
)
2008-01-04 19:49:57 +01:00
Günther Deschner
77219ddd22
Fix build warning.
...
Guenther
(This used to be commit a43125d9e9
)
2008-01-04 17:43:23 +01:00
Günther Deschner
28ef4878d9
Rename server_name to dc_name in libnet join structures.
...
Guenther
(This used to be commit ff5e15b1ba
)
2008-01-04 17:43:15 +01:00
Günther Deschner
6f84ea9cd7
Separate out storing and removing secrets in libnet_join/unjoin.
...
Guenther
(This used to be commit b59ca2d9c3
)
2008-01-04 17:43:09 +01:00
Günther Deschner
0399df22f0
In libnet_join finally separate the admin from the machine pwd entirely.
...
Guenther
(This used to be commit d88bb94f0e
)
2008-01-04 17:43:02 +01:00
Michael Adam
1c183874ab
Use the proper boolean constants.
...
Michael
(This used to be commit 2ba625e473
)
2008-01-04 15:26:05 +01:00
Günther Deschner
f78c318eb0
Add debug switch to netdomjoin.
...
Guenther
(This used to be commit 2b221708c0
)
2008-01-04 15:21:41 +01:00
Günther Deschner
564a54aa16
Minor cosmetic cleanup for netdomjoin-gui.
...
Guenther
(This used to be commit 02e3887f39
)
2008-01-04 15:21:35 +01:00
Günther Deschner
5c09517d7d
Fix crash bug in regdb_close() when called with no ref count.
...
Michael, please check.
Guenther
(This used to be commit d6575ff5d2
)
2008-01-04 12:58:09 +01:00