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 16224e8f4f22a8db0ed278d741a7706967f55335)
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 c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
2008-01-04 12:56:23 -08:00
Michael Adam
2f195e52fa
Fix a DEBUG statement.
...
Michael
(This used to be commit 18360b852c662d933ceff9854725f878a5de9a7d)
2008-01-04 21:35:29 +01:00
Michael Adam
517ad5318d
Fix spacing - spaces mixed with tabs.
...
Michael
(This used to be commit a4ef828102417f04af1e9823c89404e77e4fd5c1)
2008-01-04 21:16:48 +01:00
Michael Adam
dbdaa5eeec
Fix a comment.
...
Michael
(This used to be commit fc9c3f39b5af55026f1e5e964857c203cf6c9316)
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 8d9e3e08f3cc6a1f54661d1e54a3902ad50be191)
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 e166b886375b450534c894676ab1f64571dd46b8)
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 e7164a252bf213a74d6eeac5aa04645eed5be241)
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 f89e356bdaa203ef0a3ce6b8bd52170afa68a2c9)
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 2030a8de19a2c7c735a8aa367dd953e4a5c447b8)
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 ed30516bb0f55f9ba466debf91b6e33d1c28a484)
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 df5839b5376e903486982ddc7c4f4fbd4550c60a)
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 790ef789444945fbae5637f0b469665859171dcd)
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 fc0fca980f08a0af65d82784ef5a50a7b1ac0927)
2008-01-04 19:49:57 +01:00
Günther Deschner
77219ddd22
Fix build warning.
...
Guenther
(This used to be commit a43125d9e9052fab8eb561976f45d1db4622482e)
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 ff5e15b1ba0d5c39ceef9f9995c107e510162564)
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 b59ca2d9c3375c0d0b9f585e48d718689586bb92)
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 d88bb94f0ef00ddbb48498797bd11448e0d74645)
2008-01-04 17:43:02 +01:00
Michael Adam
1c183874ab
Use the proper boolean constants.
...
Michael
(This used to be commit 2ba625e473e8eb23d692566d32a8ac965785df4e)
2008-01-04 15:26:05 +01:00
Günther Deschner
f78c318eb0
Add debug switch to netdomjoin.
...
Guenther
(This used to be commit 2b221708c07967bccd68e8c7983791b4628405bb)
2008-01-04 15:21:41 +01:00
Günther Deschner
564a54aa16
Minor cosmetic cleanup for netdomjoin-gui.
...
Guenther
(This used to be commit 02e3887f3962b469c965110b6141a6655f2347af)
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 d6575ff5d240ec431b6e837494913dbd06e5a299)
2008-01-04 12:58:09 +01:00
Günther Deschner
cf6e59de2b
Fix some error strings in netdomjoin-gui.
...
Guenther
(This used to be commit aaea8f1ed744e9662f92a3840d86ad1aff943d18)
2008-01-04 11:55:08 +01:00
Günther Deschner
8dc1bf89a7
Robustness fix for libnet join when unjoining.
...
Guenther
(This used to be commit d7f01d940feb7dfedb6c4b8b88f5443434e03428)
2008-01-04 11:55:00 +01:00
Günther Deschner
b076a7e802
Add ads_get_joinable_ous().
...
Guenther
(This used to be commit 5bbceac88159ef6ff83d9cc62c77c7af2116967d)
2008-01-03 18:15:59 +01:00
Günther Deschner
192700bd08
Use different error code for libnet_conf initialization failure.
...
Guenther
(This used to be commit 65537eae842065a1dd68d8e532e61502b61e1dbe)
2008-01-03 18:15:28 +01:00
Günther Deschner
be88a67388
Minor libnetapi join cosmetic cleanup.
...
Guenther
(This used to be commit 4deef80bed374af5032c0f3081d2ee3c70be99df)
2008-01-03 18:15:22 +01:00
Günther Deschner
f8dacb9860
Add some more join related werror codes.
...
Guenther
(This used to be commit 62e7d467ab1b2f98327960eec3a3a925b2f04bda)
2008-01-03 18:15:14 +01:00
Michael Adam
5470f8f638
Make libnet_conf handle opening/initialization of the registry.
...
Open state is currently tracked by a global variable
to avoid double initialization.
Later, this can possibly be replaced by a conf-context
created by an initialization function and passed around
to the other api functions.
Michael
(This used to be commit 77713e776405800ac54c692a77cd4efd153042cb)
2008-01-03 15:33:09 +01:00
Michael Adam
6dce6ba0a6
Add a comment header and do some slight reformatting.
...
Michael
(This used to be commit 5d557e3f95b8d53114c25ba7fa3e564a50be9e05)
2008-01-03 14:34:31 +01:00
Michael Adam
30829d1bda
Use GLOBAL_NAME constant.
...
Michael
(This used to be commit 4c404d627ccfaf1c17f4b6b1ebab6fce357d9ab1)
2008-01-03 14:17:49 +01:00
Michael Adam
5655ae7a24
Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
...
Now all functions are converted to the consistent naming scheme.
Michael
(This used to be commit a559533c0c8a80f3f4078bbc2675de395359485f)
2008-01-03 14:17:49 +01:00
Michael Adam
2476254ccd
Rename libnet_smbconf_delparm() to libnet_conf_delete_parameter().
...
Michael
(This used to be commit 073eeca51e46da6a687175aadbfdbb9e029532d6)
2008-01-03 14:17:49 +01:00
Michael Adam
55771b356d
Rename libnet_smbconf_getparm() to libnet_conf_get_parameter().
...
Michael
(This used to be commit d08556dbc7071933feaeec538f01ac8f6a637b1d)
2008-01-03 14:17:49 +01:00
Michael Adam
b9f904b59d
Rename libnet_smbconf_setparm() to libnet_conf_set_parameter().
...
Michael
(This used to be commit e00cb415d30b3e72ccfb7e5c366c95ec0f9c6247)
2008-01-03 14:17:49 +01:00
Michael Adam
e89411effd
Rename libnet_smbconf_delshare() to libnet_conf_delete_share().
...
Michael
(This used to be commit 2075baf551ca7fc6bcee6b93f63fd7fbf75f9a50)
2008-01-03 14:17:49 +01:00
Michael Adam
e1aa474a32
Rename libnet_smbconf_getshare() to libnet_conf_get_share().
...
Michael
(This used to be commit 1575612f1936312125e7778a9a4227e444ea36cf)
2008-01-03 14:17:49 +01:00
Michael Adam
3f3a29ed50
Rename libnet_smbconf_create_share() to libnet_conf_create_share().
...
Michael
(This used to be commit 6bc4ee210855dbfbee9e86b59e90b08ecb3a9df9)
2008-01-03 14:17:49 +01:00
Michael Adam
630de5f555
Rename libnet_smbconf_share_exists() to libnet_conf_share_exists().
...
Michael
(This used to be commit 3258758e5c8dfc2c681e1285cb34aaacae697a55)
2008-01-03 14:17:49 +01:00
Michael Adam
daf1a460c8
Rename libnet_smbconf_get_share_names() to libnet_conf_get_share_names().
...
Michael
(This used to be commit 2e4beee66b3672c3259b312aca3d482598731119)
2008-01-03 14:17:49 +01:00
Michael Adam
90837d048b
Rename libnet_smbconf_get_config() to libnet_conf_get_config().
...
Michael
(This used to be commit e8f7c07699b5b93acd81b24bca908769f0b5e8d8)
2008-01-03 14:17:49 +01:00
Michael Adam
05ff62cf78
Rename libnet_smbconf_drop() to libnet_conf_drop().
...
Michael
(This used to be commit 42ae33a96228e916d7d530d844be6937a80d4fea)
2008-01-03 14:17:49 +01:00
Michael Adam
12a0cd5310
Rename libnet_smbconf_reg_get_values() to libnet_conf_reg_get_values().
...
Now all internal helper functions are converted to the consistent
naming scheme.
Michael
(This used to be commit c23e6636a886d93b98c9439ba081def0385f67ac)
2008-01-03 14:17:49 +01:00
Michael Adam
6ab11e5f98
Rename libnet_smbconf_format_registry_value() to libnet_conf_format_registry_value().
...
Michael
(This used to be commit 3f9f35335127a673639fa30c88cdea6c79f04b92)
2008-01-03 14:17:49 +01:00
Michael Adam
547c3583e4
Rename libnet_smbconf_reg_set_value() to libnet_conf_reg_set_value().
...
Michael
(This used to be commit 96b2923bc3c57700352869627c38609529d53cd2)
2008-01-03 14:17:48 +01:00
Michael Adam
340cb434db
Rename libnet_smbconf_reg_create_service_key() to libnet_conf_reg_create_service_key().
...
Michael
(This used to be commit cd1846943cbcc02ea9fa3b9237bd02e667a475db)
2008-01-03 14:17:48 +01:00
Michael Adam
d3e54d913c
Rename libnet_smbconf_value_exists() to libnet_conf_value_exists().
...
Michael
(This used to be commit 49f740797bb7fc5edacbd4c3e8b1eb1aab131ea4)
2008-01-03 14:17:48 +01:00
Michael Adam
cd84256866
Rename libnet_smbconf_reg_open_basekey() to libnet_conf_reg_open_base_key().
...
Michael
(This used to be commit c2ba52b2c34abc42b4ff7945715dc36e08a2f112)
2008-01-03 14:17:48 +01:00
Michael Adam
dde8701b85
Rename libnet_smbconf_reg_open_service_key() to libnet_conf_reg_open_service_key().
...
Michael
(This used to be commit 4d86d2dd6f0a577e446ccb4b362b3cd80f819600)
2008-01-03 14:17:48 +01:00
Michael Adam
e598b93d2f
Rename libnet_smbconf_reg_open_path() to libnet_conf_reg_open_path().
...
Michael
(This used to be commit 9868364e2c7827ac7914bee711a65d4456a5e366)
2008-01-03 14:17:48 +01:00