Andrew Tridgell
86f3a2ea09
s4: fixed the secrets.ldb construction in libnet
...
on a vampire join we were not putting the right attributes and
objectclass on the secrets.ldb record
2009-09-07 10:33:47 +10:00
Andrew Tridgell
7dbe0797b1
show more reasonable object counts during a vampire
...
We now show the total number of objects we have processed, which gives
the user a better idea of how much has been done. A vampire on a large
domain can take an hour or more (which needs to be fixed btw, it is a
problem with the lack of scalability of the ltdb index code). Watching
the same msg for an hour makes you wonder if any progress is being
made!
2009-09-03 18:36:09 +10:00
Andrew Tridgell
69802b3a3b
wrap the entire vampire operation in a transaction
...
We want to grab the whole database, or none of it.
This is also needed to get linked attributes right
2009-09-02 18:19:55 +10:00
Stefan Metzmacher
ff37d6631c
s4:libnet: use talloc_strdup() instead of talloc_reference()
...
metze
2009-07-31 14:42:03 +02:00
Andrew Bartlett
4e049b0a1c
Fix compile of py_net.c
2009-07-28 18:00:46 +10:00
Andrew Bartlett
058cd95c88
s4:libnet Add in a 'credentials' parameter for python libnet_Join
2009-07-28 16:06:05 +10:00
Andrew Bartlett
47a7a2e442
s4:kerberos Add 'net export keytab' command for wireshark decryption
...
It is much easier to do decryption with wireshark when the keytab is
available for every host in the domain. Running 'net export keytab
<keytab name>' will export the current (as pointed to by the supplied
smb.conf) local Samba4 doamin.
(This uses Heimdal's 'hdb' keytab and then the existing hdb-samba4,
and so has a good chance of keeping working in the long term).
Andrew Bartlett
2009-07-28 08:52:43 +10:00
Stefan Metzmacher
b7c003c09c
Revert "s4:kerberos Add 'net export keytab' command for wireshark decryption"
...
This reverts commit a40ce5d0d9
.
This breaks the build...
Andrew, please repush it, when it's fixed:-)
metze
2009-07-27 17:41:11 +02:00
Andrew Bartlett
a40ce5d0d9
s4:kerberos Add 'net export keytab' command for wireshark decryption
...
It is much easier to do decryption with wireshark when the keytab is
available for every host in the domain. Running 'net export keytab
<keytab name>' will export the current (as pointed to by the supplied
smb.conf) local Samba4 doamin.
(This uses Heimdal's 'hdb' keytab and then the existing hdb-samba4,
and so has a good chance of keeping working in the long term).
Andrew Bartlett
2009-07-27 22:41:42 +10:00
Jelmer Vernooij
28d155499a
Add missing includes.
2009-07-19 13:39:38 +02:00
Stefan Metzmacher
722765213b
s4:libnet: rename uint => uint32_t because uint is not portable
...
metze
2009-07-15 20:47:00 +02:00
Günther Deschner
8db45607f8
libds: share UF_ flags between samba3 and 4.
...
Guenther
2009-07-13 15:36:06 +02:00
Andrew Tridgell
865ca9be64
the settings structure needs to be initialised
2009-07-02 14:55:38 +10:00
Andrew Tridgell
27620c85e7
use a talloc_reparent in a very ugly way
...
this works around some terrible use of talloc in the libnet code
2009-07-01 15:15:37 +10:00
Andrew Tridgell
0534ae012b
use the new talloc_reparent in two places
2009-07-01 15:15:37 +10:00
Andrew Bartlett
58e8db912d
s4:libnet Allow 'net password change' to work on expired passwords
...
We need to pass down flags to the DCE/RPC layer to allow fallback to
anonymous connections, as we can't log in with an expired password.
The anonymous connection can then change the password with SAMR.
Andrew Bartlett
2009-06-18 13:49:30 +10:00
Andrew Tridgell
4dcc058ea1
fixed the client side password change code
...
The client side code was not falling back to older routines correctly
as it didn't check for the operation range error appropriately. It
also used the old rpc semantics.
2009-05-25 13:40:52 +10:00
Andrew Bartlett
aa5cee2288
s4:libnet Use str_list_make_single() in resolv code
2009-05-14 05:56:59 +10:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Andrew Bartlett
df8e1908ef
Use common samsync delta decryption functions in libnet_samsync.c
...
Andrew Bartlett
2009-04-14 16:23:43 +10:00
Andrew Tridgell
9539e2b508
major upgrade to the ldb attribute handling
...
This is all working towards supporting the full WSPP schema without a
major performance penalty.
We now use binary searches when looking up classes and attributes. We
also avoid the loop loading the attributes into ldb, by adding a hook
to override the ldb attribute search function in a module. The
attributes can thus be loaded once, and then saved as part of the
global schema.
Also added support for a few more key attribute syntaxes, as needed
for the full schema.
2009-04-02 16:42:21 +11:00
Stefan Metzmacher
c600e8ef42
s4:cldap: rewrite the cldap library based on tsocket
...
metze
2009-03-19 16:25:59 +01:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9ffb6d2d9e
Add allow_badcharcnv argument to all conversion function, for
...
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Stefan Metzmacher
aa9c6b58f5
s4:libnet: s/new/n
...
metze
2009-02-02 13:09:17 +01:00
Stefan Metzmacher
1bb0104070
s4:cldap: s/private/private_data
...
metze
2009-02-02 13:08:42 +01:00
Stefan Metzmacher
c005bbddb7
s4:libnet/: s/private/private_data
...
metze
2009-02-02 13:08:29 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Kai Blin
855d2a927e
s4 libnet: Add support for groupinfo by sid lookup
2008-12-29 12:52:27 +01:00
Kai Blin
181d4fd31a
s4 libnet: Add group_name member to struct libnet_GroupInfo's out struct.
2008-12-29 12:52:26 +01:00
Stefan Metzmacher
37b6950961
s4:libnet_samdump_keytab: pass down event_context explicit
...
metze
2008-12-29 09:46:38 +01:00
Jelmer Vernooij
ff26cb4b1c
Fix compiler warnings in libnet.
2008-12-23 22:11:21 +01:00
Günther Deschner
4bcf8edcf8
s4-samr: fix samr callers after SAMR_FIELD_PASSWORD change.
...
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
296fae7561
s4-samr: fix samr passwdord_expired callers.
...
Guenther
2008-11-28 13:55:49 +01:00
Günther Deschner
09998ab89d
s4-samr: merge samr_QueryUserInfo{2} from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:31 +01:00
Günther Deschner
15e011564a
s4-samr: merge samr_QueryGroupInfo from s3 idl. (fixme python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
99c2fac6b2
s4-samr: merge samr_EnumDomainGroups from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
1ea97d76ed
s4-samr: merge samr_EnumDomainUsers from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
d4d9a73ad1
s4-samr: merge samr_EnumDomains from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
bb1d7684d2
s4-samr: merge samr_LookupDomain from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
61391d0ade
s4-samr: merge samr_LookupNames from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:30 +01:00
Günther Deschner
f42f1ae5a8
s4-samr: merge samr_GetUserPwInfo from s3 idl. (fixme: python)
...
Guenther
2008-11-10 21:46:27 +01:00
Günther Deschner
e0a6e3b23b
s4-samr: merge samr_ChangePasswordUser3 from s3 idl.
...
Guenther
2008-11-10 21:46:26 +01:00
Günther Deschner
e004307000
s4-netlogon: change parameters string to lsa_BinaryString.
...
Guenther
2008-11-10 21:46:25 +01:00
Jelmer Vernooij
cb77fca1cd
Remove use of global loadparm in python modules.
2008-11-02 16:50:11 +01:00
Günther Deschner
7204deac82
s4-srvsvc: merge srvsvc_NetShareEnumAll from s3 idl.
...
Guenther
2008-10-31 02:44:34 +01:00
Günther Deschner
3206f35527
s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.
...
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
9fd82703d1
s4-srvsvc: merge srvsvc_NetRemoteTOD from s3 idl.
...
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
cbc0b63a77
s4-netlogon: merge netr_DatabaseSync from s3 idl.
...
Guenther
2008-10-29 08:57:51 +01:00
Günther Deschner
a4ad265850
s4-libnet: fix user and group enumeration functions after lsa changes.
...
Guenther
2008-10-27 21:46:50 +01:00
Günther Deschner
95231eae39
s4-lsa: merge lsa_QueryInfoPolicy/{2} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Günther Deschner
92f1c0d156
s4-lsa: merge lsa_LookupNames/{2,3,4} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Jelmer Vernooij
0b0b11e3d9
Fix the build.
2008-10-24 16:52:25 +02:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
37d885c51a
Remove iconv_convenience argument from convert_string{,talloc}() but
...
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24 14:26:46 +02:00
Jelmer Vernooij
7ec58471df
Split up codepoints code, use consistent _m suffix.
2008-10-24 02:51:03 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Günther Deschner
dd49f7483b
s4-drsuapi: merge drsuapi_DsGetNCChanges from s3 drsuapi idl.
...
Guenther
2008-10-18 23:06:39 +02:00
Günther Deschner
6ddaf5f160
s4-drsuapi: merge drsuapi_DsCrackNames from s3 drsuapi idl.
...
Guenther
2008-10-18 23:06:31 +02:00
Günther Deschner
b684efacf5
s4-drsuapi: merge drsuapi_DsRemoveDSServer from s3 drsuapi idl.
...
Guenther
2008-10-18 23:06:07 +02:00
Günther Deschner
bc1d39483c
s4-drsuapi: merge drsuapi_DsAddEntry from s3 drsuapi idl.
...
Guenther
2008-10-18 23:05:59 +02:00
Jelmer Vernooij
218f482fbf
Use common strlist implementation in Samba 3 and Samba 4.
2008-10-12 00:56:56 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Stefan Metzmacher
3c9f3c32d1
s4:drsuapi.idl: fix some fields in drsuapi_DsRemoveDSServer()
...
metze
2008-10-02 12:20:59 +02:00
Volker Lendecke
af1c802791
The IRIX compiler does not like embedded unnamed unions
2008-10-02 08:09:25 +02:00
Jelmer Vernooij
cef80957c4
Remove global_loadparm instance, discard_const_p.
2008-09-30 02:19:15 +02:00
Jelmer Vernooij
43d944e6d6
Remove global_loadparm instance.
2008-09-30 01:59:10 +02:00
Jelmer Vernooij
6925202bde
Move source4/lib/crypto to lib/crypto.
2008-09-24 15:30:23 +02:00
Simo Sorce
508527890a
Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.
...
The previous ldb_search() interface made it way too easy to leak results,
and being able to use a printf-like expression turns to be really useful.
2008-09-23 18:17:46 -04:00
Stefan Metzmacher
75f594b285
drsuapi: fix samba4 callers after drsuapi.idl changes
...
metze
(This used to be commit 4b054cee51
)
2008-08-20 15:22:05 +02:00
Stefan Metzmacher
8275d511bc
drsuapi: fix callers after idl change
...
metze
(This used to be commit 7dee6fb62d
)
2008-08-07 19:15:58 +02:00
Michael Adam
db36f37b8f
libnet_become_dc: send msDS_Behavior_Version == 3 (win2k8) in DsAddEntry
...
instead of version 2 (win2k3).
This makes the NET-API-BECOME-DC test work against windows 2003 and 2008.
Michael
(This used to be commit a7bfa1fb1b
)
2008-07-23 18:02:44 +02:00
Michael Adam
c71030bd04
libnet_become_cd: add boolean option "become_dc:force krb5" to control krb5 auth.
...
This allows controlling whether krb5 auth is forced for the rpc bind in
libnet_become_dc. It defaults to "yes". For Windows 2000, DsGetNCChanges
only krb5 auth works due to a bug in Windows (it returns garbage - a
positive object count is returned along with first object == NULL).
For Windows 2008, on the other hand, krb5 auth does not work currently
due to the lack of support for AES keys. (Metze is working on that.)
Michael
(This used to be commit af85aad814
)
2008-07-23 18:01:02 +02:00
Michael Adam
1f20ca14cc
drsuapi: always set the pid field of the outgoing DsBindInfo to 0.
...
This is for debugging and informational purposes only.
The assignment is implementation specific.
(WSPP docs, sec. 5.35).
Michael
(This used to be commit 1f5704e2de
)
2008-07-23 15:36:13 +02:00
Michael Adam
e269804b04
libnet_unbecome_dc: teach unbecomeDC_drsuapi_bind_recv() DsBindInfo48.
...
..to work agains w2k8.
Michael
(This used to be commit 97e8d5813d
)
2008-07-23 15:36:13 +02:00
Michael Adam
46bb8aa357
libnet_become_cd: teach becomeDC_drsuapi_bind_recv() DsBindInfo48.
...
To work with w2k8.
Michael
(This used to be commit 7d80fab912
)
2008-07-23 15:36:13 +02:00
Stefan Metzmacher
945eedc4c1
libnet/become_dc: add a comment and explain why it's important to specify krb5
...
metze
(This used to be commit 26d1f9366d
)
2008-07-23 11:56:55 +02:00
Michael Adam
7fba6c649b
Change occurrences of the u1 member of DsBindInfo* to pid after idl change.
...
Michael
(This used to be commit b91bbc5fe4
)
2008-07-22 15:35:23 +02:00
Andrew Bartlett
d626a26374
Rename structures to better match the names in the WSPP IDL.
...
The 'comment' element in a number of domain structures is called
oem_information. This was picked up actually because with OpenLDAP
doing the schema checking, it noticed that 'comment' was not a valid
attribute.
The rename tries to keep this consistant in both the LDB mappings and
IDL, so we don't make the same mistake in future.
This has no real schema impact, as this value isn't actually used for
anything, as 'comment' was not used in the provision.
Andrew Bartlett
(This used to be commit 65dc0d5365
)
2008-07-21 13:42:07 +10:00
Stefan Metzmacher
29049aa670
drsuapi: print out the number of linked attribute values we got
...
metze
(This used to be commit 34f8b2abdd
)
2008-07-16 14:42:12 +02:00
Stefan Metzmacher
f0e44c35af
drsuapi: make use of the 'more_data' field in DsGetNCChangesCtr[1|6]
...
metze
(This used to be commit 35c7fa470a
)
2008-07-16 14:42:11 +02:00
Stefan Metzmacher
f3fae86549
drsuapi: check ctr6->drs_error
...
metze
(This used to be commit 511847f5f5
)
2008-07-16 14:42:11 +02:00
Stefan Metzmacher
a24fb2b537
drsuapi: get ctr6 out of xpress compressed level
...
metze
(This used to be commit 4e0708148a
)
2008-07-16 14:42:06 +02:00
Stefan Metzmacher
c6ea7f0221
drsuapi: total_object_count was the wrong guess
...
The total_object_count member of DsGetNCChangesCtr[1|6] was wrong
it's the error code of an extended operation.
DsGetNCChangesCtr6 has a nc_object_count value which contains
the estimated amount of objects in the naming_context.
W2k seems to have a bug and sends this number of objects
in the extended_ret field. Maybe it's just a bug and
not a feature:-)
metze
(This used to be commit 6793109212
)
2008-07-16 12:16:58 +02:00
Stefan Metzmacher
ddce2beba8
libnet/become_dc: an unknown field in drsuapi.idl changed to object_flags
...
metze
(This used to be commit a6198ab6cb
)
2008-07-16 12:15:50 +02:00
Stefan Metzmacher
c8a1254db8
become_dc: we need to replicate using krb5 auth to work against w2k
...
With NTLMSSP we just get strange responses with a random object count
and a NULL object list. On the domain partition where we try to replicate
the password fields.
metze
(This used to be commit ce12a91051
)
2008-07-16 12:12:29 +02:00
Andrew Bartlett
532899386b
Use secrets.ldb to store credentials to contact LDAP backend.
...
This makes Samba4 behave much like Samba3 did, and use a single set of
administrative credentials for it's connection to LDAP.
Andrew Bartlett
(This used to be commit e396a59788
)
2008-07-15 15:07:13 +10:00
Andrew Bartlett
44ea6a26fd
rename sambaPassword -> userPassword.
...
This attribute is used in a very similar way (virtual attribute
updating the password) in AD on Win2003, so eliminate the difference.
This should not cause a problem for on-disk passwords, as by default
we do not store the plaintext at all.
Andrew Bartlett
(This used to be commit 1cf0d75149
)
2008-07-12 15:26:42 +10:00
Michael Adam
24caf1178a
libnet_domain: eliminate "discards qualifier" warning (const).
...
Michael
(This used to be commit ea99590046
)
2008-07-09 16:00:24 +02:00
Stefan Metzmacher
c88ec856bd
drsuapi.idl: remove some unknows from DsGetNCChanges() (update samba4 callers)
...
metze
(This used to be commit d41b3dd6ff
)
2008-06-30 17:40:01 +02:00
Simo Sorce
2daf2897d5
Use a custom init function for samba4 that sets a samba4
...
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308
)
2008-06-14 13:00:53 -04:00
Simo Sorce
929adc9efa
Make up the right dependencies now that ldb depends on libevents
...
(This used to be commit 3b8eec7ca3
)
2008-06-14 11:59:19 -04:00
Andrew Bartlett
be14efbdf9
Revert Jelmer's CFLAGS commit e2b71a0ecb
...
This commit broke the build, because not all files (libreplace, popt)
were updated.
Andrew Bartlett
(This used to be commit 3faacf4351
)
2008-05-31 08:35:55 +10:00
Jelmer Vernooij
39f50afc57
Move CFLAGS handling out of smb_build.
...
(This used to be commit e2b71a0ecb
)
2008-05-30 02:07:28 +02:00
Jelmer Vernooij
b8310221c6
Add docstring for samba.net.Join
...
(This used to be commit 382de54553
)
2008-05-23 00:37:30 +02:00
Jelmer Vernooij
49706ab19b
Move more modules inside of the samba package.
...
(This used to be commit 9b39e99f48
)
2008-05-21 23:59:34 +02:00
Andrew Bartlett
343fea32cc
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
...
Fix config.mk due to changing syntax.
Conflicts:
source/libcli/config.mk
source/nbt_server/config.mk
(This used to be commit 6a1c76f29f
)
2008-05-20 08:03:35 +10:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
100d3967d3
Use src dir.
...
(This used to be commit 63f2b66f0e
)
2008-05-18 19:10:37 +02:00
Jelmer Vernooij
4d2f44163e
Use variables for source path in libnet/ and scripting/python.
...
(This used to be commit fb10a81b94
)
2008-05-18 19:07:07 +02:00
Andrew Bartlett
58e7f253ea
Rework the CLDAP and NBT netlogon requests and responses.
...
This now matches section 7.3.3 of the MS-ATDS specification, and all
our current tests pass against windows. There is still more testing
to do, and the server implementation to complete.
Andrew Bartlett
(This used to be commit 431d0c0396
)
2008-05-16 13:03:01 +10:00
Kai Blin
240d959005
libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuid
...
(This used to be commit 5f3a70f285
)
2008-04-24 11:17:23 +02:00
Simo Sorce
4e83011f72
Remove more event_context_init() uses from function calls within deep down the code.
...
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d39162
)
2008-04-21 18:12:33 -04:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
1efbd5fbf6
Remove event context tracking from the credentials struct.
...
(This used to be commit 4d7fc946b2
)
2008-04-17 01:03:18 +02:00
Jelmer Vernooij
18f8f5d656
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake4
...
(This used to be commit 1ef3830bb0
)
2008-04-14 20:00:32 +02:00
Andrew Bartlett
68a2c547d0
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
...
(This used to be commit 0f0c8519b8
)
2008-04-14 19:32:42 +02:00
Simo Sorce
4f51b0246d
Fix problems with event context not being the parent.
...
(This used to be commit 957c4d893a
)
2008-04-14 12:45:51 -04:00
Andrew Bartlett
b54e6a8155
Ensure we initialise s->lp_ctx for the way into the provision.
...
Andrew Bartlett
(This used to be commit b191a1953c
)
2008-04-14 17:58:09 +02:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054
)
2008-04-14 17:22:58 +02:00
Andrew Bartlett
a1a3089199
Use the python-provided ldb and lp_ctx pointers in libnet_vampire.c
...
By using the already open smb.conf and sam.ldb, we not only avoid
overhead, but also remove the risk we could touch a different
database.
Andrew Bartlett
(This used to be commit 38634183a0
)
2008-04-11 19:15:24 +10:00
Andrew Bartlett
8a982108a4
Link the new vampire code togeather.
...
This adds in the newly attached secrets handling, as well as an
interface to the command line 'net' tool.
Andrew Bartlett
(This used to be commit 1282e3c394
)
2008-04-09 14:59:32 +10:00
Andrew Bartlett
29b25a1b04
Factor out filling in the secrets database.
...
This allows the vampire code to start with a join, but fill in the
secrets only when the process is compleated.
Andrew Bartlett
(This used to be commit c90751040e
)
2008-04-09 14:56:24 +10:00
Andrew Bartlett
5eda5e5197
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
...
(This used to be commit 58e00594d8
)
2008-04-09 12:03:36 +10:00
Andrew Bartlett
2f8ac9a422
Start implementation of real 'net vampire' code.
...
This will use DRS Replication (metze's thesis work) and possibly
samsync, and will work outside the smbtorture process.
Andrew Bartlett
(This used to be commit 02a33165ca
)
2008-04-09 12:02:11 +10:00
Jelmer Vernooij
8db14bf26b
Add manually written Python binding for libnet_Join.
...
(This used to be commit 374654b43d
)
2008-04-08 05:16:07 +02:00
Jelmer Vernooij
236fc02913
Reduce the number of installed headers.
...
(This used to be commit 2243e24024
)
2008-04-02 13:41:10 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf674
)
2008-04-02 04:53:27 +02:00
Andrew Kroeger
8f8c56bfbc
Convert some more files to GPLv3.
...
(This used to be commit ebe5e83994
)
2008-03-28 01:08:49 -05:00
Stefan Metzmacher
2fd5992038
swig: regenerate _wrap.c files
...
metze
(This used to be commit 08b41e1069
)
2008-03-14 14:33:55 +01:00
Andrew Bartlett
359be70ed7
Report binding in libnet failure message.
...
Andrew Bartlett
(This used to be commit def46f6852
)
2008-03-13 14:13:31 +11:00
Jelmer Vernooij
1ada710840
Move public header accumulation out of the perl code.
...
Never install generated prototype files. It's easier to break the
API when using them and they're not easily readable for 3rd party users.
Conflicts:
source/auth/config.mk
source/auth/credentials/config.mk
source/auth/gensec/config.mk
source/build/smb_build/config_mk.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/dsdb/config.mk
source/lib/charset/config.mk
source/lib/tdr/config.mk
source/lib/util/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/librpc/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/torture/config.mk
(This used to be commit 6c659689ed
)
2008-02-29 14:23:38 +01:00
Jelmer Vernooij
7e04591520
Remove use of global_loadparm.
...
(This used to be commit 3cf3922c80
)
2008-02-28 21:02:49 +01:00
Jelmer Vernooij
fc6bc92e11
Merge branch 'v4-0-trivial' into v4-0-test
...
(This used to be commit 6cbb241c05
)
2008-02-28 18:27:29 +01:00
Andrew Bartlett
2a209a6a9d
Ensure we don't try and set the acct_flags if they are 0 (meaning
...
unchanged in this interface).
We seem to have two very similar interfaces here, and this is the
poorer interface, for this reason.
Andrew Bartlett
(This used to be commit 582073eff1
)
2008-02-28 10:43:57 +11:00
Jelmer Vernooij
10169a2030
Remove more global_loadparm instance.s
...
(This used to be commit a1280252ce
)
2008-02-21 17:54:24 +01:00
Jelmer Vernooij
08c8d3b992
Remove Samba 3 backwards compatibility code in C.
...
This code is no longer used, and equivalent code already exists in Python
(scripting/python/samba/samba3.py)
(This used to be commit c16212e8bf
)
2008-02-11 13:51:09 +01:00
Andrew Bartlett
d08eabdf91
Remove the forced 'krb5' from the NET-API-BECOME-DC test.
...
If we want to try this authenication mechanism, we can always manually
specify the binding string.
Andrew Bartlett
(This used to be commit 191d56d41e
)
2008-02-09 14:13:23 +11:00
Andrew Bartlett
8bceed449d
Fix segfaults in codepaths only tested by the NET-API-BECOME-DC test.
...
(I presume this has resulted from the global variable elimination)
Perhaps the iconv handle argument to ndr_push_struct needs to be
marked as 'not NULL' or similar?
Andrew Bartlett
(This used to be commit e8081333b8
)
2008-01-23 15:34:44 +11:00
Jelmer Vernooij
35c6831644
python: Avoid duplicate copies of some objects in different packages.
...
(This used to be commit bd293cde1b
)
2008-01-22 16:21:54 +01:00
Jelmer Vernooij
03023c4f7d
build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
...
to migrate to a new build system.
(This used to be commit 77b400764e
)
2008-01-21 03:54:42 +01:00
Kai Blin
ed4fde2acc
libnet: Rename a variable so it does not shadow a global.
...
(This used to be commit a5b9d2f332
)
2008-01-11 11:12:52 +01:00
Rafal Szczesniak
d6b91ac202
r26693: Add (untested) libnet_rpc_groupdel function.
...
rafal
(This used to be commit e940b1020a
)
2008-01-08 04:27:01 -06:00
Jelmer Vernooij
2c8c9a5355
r26669: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 50c46160d9
)
2008-01-05 09:42:02 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98
)
2008-01-01 16:12:11 -06:00
Rafal Szczesniak
3a0a6e810a
r26633: A couple of fixes in comments.
...
(This used to be commit 9ff6568f95
)
2007-12-30 13:21:01 -06:00
Rafal Szczesniak
fcb8285339
r26632: Add libnet_CreateGroup function.
...
(This used to be commit b8e115a920
)
2007-12-30 13:18:01 -06:00
Jelmer Vernooij
68b6982704
r26624: libnet/python: Use standard function for constructing context, allow overriding credentials.
...
(This used to be commit a5fb3caede
)
2007-12-28 10:33:02 -06:00
Jelmer Vernooij
c2d16f46a3
r26619: Add Python bindings for libnet. No tests yet and no way to set the parameters...
...
(This used to be commit 9de0a153e9
)
2007-12-28 09:42:02 -06:00
Jelmer Vernooij
de9c8930a6
r26573: Fix warnings.
...
(This used to be commit 874f0ac056
)
2007-12-24 01:51:04 -06:00
Jelmer Vernooij
0500b87092
r26540: Revert my previous commit after concerns raised by Andrew.
...
(This used to be commit 6ac86f8be7
)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc
r26539: Remove unnecessary statics.
...
(This used to be commit e53e79eebe
)
2007-12-21 05:52:05 +01:00
Rafal Szczesniak
1385a75409
r26532: Fix mistake in assignment.
...
(This used to be commit 4d0ff8e375
)
2007-12-21 05:51:55 +01:00
Rafal Szczesniak
cad1e11959
r26519: Add libnet_GroupList function. Totally untested (yet), but
...
it builds for start.
(This used to be commit 4e1054dc62
)
2007-12-21 05:51:25 +01:00
Jelmer Vernooij
71e2cafe96
r26483: Merge ldb module dependency fixes, fix auth python module.
...
(This used to be commit 85eeecf997
)
2007-12-21 05:50:41 +01:00
Jelmer Vernooij
2331f4e9a5
r26442: Remove use of global_loadparm.
...
(This used to be commit 2962a6143c
)
2007-12-21 05:50:09 +01:00
Jelmer Vernooij
84b4763947
r26441: Remove global_loadparm uses.
...
(This used to be commit 32007c6277
)
2007-12-21 05:50:09 +01:00
Jelmer Vernooij
70ccac0f05
r26435: Remove global_loadparm instance.
...
(This used to be commit 66fd8d480b
)
2007-12-21 05:50:04 +01:00
Jelmer Vernooij
a2cea02584
r26430: require explicit specification of loadparm context.
...
(This used to be commit 1b947fe0e6
)
2007-12-21 05:49:58 +01:00
Jelmer Vernooij
a5b8999f23
r26427: Avoid global_smb_iconv_convenience.
...
(This used to be commit bf072c6fb3
)
2007-12-21 05:49:53 +01:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
33582dffcc
r26408: Remove use of global_loadparm.
...
(This used to be commit f933b43621
)
2007-12-21 05:49:39 +01:00
Jelmer Vernooij
5f4842cf65
r26376: Add context for libcli_resolve.
...
(This used to be commit 459e1466a4
)
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
949f3c7264
r26333: No more global_loadparm in finddcs.
...
(This used to be commit 0c91026e58
)
2007-12-21 05:48:45 +01:00
Jelmer Vernooij
6c77f353d3
r26328: remove more uses of global_loadparm.
...
(This used to be commit 40ae12c086
)
2007-12-21 05:48:41 +01:00
Jelmer Vernooij
4c4323009f
r26327: Explicit loadparm_context for RPC client functions.
...
(This used to be commit eeb2251d22
)
2007-12-21 05:48:41 +01:00
Jelmer Vernooij
41db2ab12c
r26319: Split encoding functions out of libcli_ldap.
...
(This used to be commit 95a6ef7fc8
)
2007-12-21 05:48:33 +01:00
Jelmer Vernooij
39ee38d9c1
r26316: Use contexts for conversion functions.
...
(This used to be commit f6420d933b
)
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
9ebcd7a0df
r26277: Move loadparm context higher up the stack.
...
(This used to be commit 38fa08310c
)
2007-12-21 05:48:03 +01:00
Jelmer Vernooij
da0f222f43
r26271: Remove some more uses of global_loadparm.
...
(This used to be commit e9875fcd56
)
2007-12-21 05:47:53 +01:00
Jelmer Vernooij
1fbdd6ef1d
r26264: pass name resolve order explicitly, use torture context for settings in dssync tests.
...
(This used to be commit c7eae1c784
)
2007-12-21 05:47:39 +01:00
Jelmer Vernooij
fface33dd7
r26231: Spell check: credentails -> credentials.
...
(This used to be commit 4b46888bd0
)
2007-12-21 05:47:09 +01:00
Jelmer Vernooij
991ee1aff0
r26205: Pass loadparm_context to secrets_db_connect() rather than using global context.
...
(This used to be commit 5718b6cfee
)
2007-12-21 05:46:51 +01:00
Andrew Bartlett
25143a2648
r26135: Remove samdb_add(), samdb_delete() and samdb_modify(), which were just
...
wrappers to ldb_add() etc. samdb_replace() remains, as it sets flags on
all entries as 'replace'.
Andrew Bartlett
(This used to be commit 09c0faa5b7
)
2007-12-21 05:46:17 +01:00
Jelmer Vernooij
ca0b72a1fd
r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.
...
(This used to be commit 56dfcb4f2f
)
2007-12-21 05:45:40 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
(This used to be commit 6223c7fddc
)
2007-12-21 05:45:02 +01:00
Stefan Metzmacher
1e14ad7cfe
r25823: remove unneeded nesting by using error and out logic
...
metze
(This used to be commit 86db839382
)
2007-12-21 05:44:13 +01:00
Günther Deschner
f2002541ce
r25803: Make our security descriptor acl manipulation methods more generic so that we
...
can add and delete ACEs for SACLs as well as for DACLs.
Guenther
(This used to be commit 947fff9941
)
2007-12-21 05:44:06 +01:00
Günther Deschner
a6c4b9d179
r25607: Allow to set security descriptor type flags at creation time with
...
security_descriptor_create().
Guenther
(This used to be commit 7dd0d28d25
)
2007-12-21 05:42:51 +01:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
2f3551ca7c
r25446: Merge some changes I made on the way home from SFO:
...
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77
)
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Rafal Szczesniak
353c00dc1f
r25367: Add initial implementation of internal group add function.
...
rafal
(This used to be commit 05624840c7
)
2007-10-10 15:07:19 -05:00
Rafal Szczesniak
cc6881b8ea
r25356: Conversion from the old-style composite functions take 2.
...
Let's find out if NET-USERMOD test passes this time on
the build farm...
rafal
(This used to be commit 6ab46e91ac
)
2007-10-10 15:07:17 -05:00
Rafal Szczesniak
7f894169d9
r25315: Revert my last change until I find out what's causing the
...
problem spotted by the builfarm.
rafal
(This used to be commit 39359391af
)
2007-10-10 15:07:13 -05:00
Rafal Szczesniak
a23b4958c0
r25312: Replace the old-style composite calls.
...
rafal
(This used to be commit 0a8531404f
)
2007-10-10 15:07:13 -05:00
Jelmer Vernooij
9b009c9009
r25301: Merge my includes.h cleanups.
...
(This used to be commit 37425495f3
)
2007-10-10 15:07:09 -05:00
Rafal Szczesniak
21dd06471b
r25256: Fix missing field set in libnet_ModifyUser routine.
...
Submitted by Matthias Dieter Wallnoefer <mwallnoefer@yahoo.de>
rafal
(This used to be commit 4fe47e4f97
)
2007-10-10 15:07:00 -05:00
Jeremy Allison
9a012df08e
r25175: Change to talloc_asprintf_append_buffer().
...
Jeremy.
(This used to be commit 0844dbf597
)
2007-10-10 15:06:46 -05:00
Andrew Bartlett
37de963f67
r25048: From the archives (patch found in one of my old working trees):
...
Try two different DNs, when performing a samsync from an AD server.
Andrew Bartlett
(This used to be commit 8204e261b5
)
2007-10-10 15:05:49 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
959915a8cb
r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier.
...
(This used to be commit 0bcb21ed74
)
2007-10-10 15:05:28 -05:00
Rafal Szczesniak
b42691ee16
r24732: Add comments and fix memory leak.
...
rafal
(This used to be commit 07b52b3606
)
2007-10-10 15:03:00 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d9
)
2007-10-10 15:02:54 -05:00
Rafal Szczesniak
9a02cc10e1
r24680: fix a couple of stupid typos from previous commit.
...
rafal
(This used to be commit b21b322e4c
)
2007-10-10 15:02:40 -05:00
Rafal Szczesniak
e104b1fedf
r24679: Add (raw and untested) implementation of libnet_GroupInfo function.
...
rafal
(This used to be commit 80479eee25
)
2007-10-10 15:02:39 -05:00
Stefan Metzmacher
f14bd1a90a
r24557: rename 'dcerpc_table_' -> 'ndr_table_'
...
metze
(This used to be commit 84651aee81
)
2007-10-10 15:02:15 -05:00
Rafal Szczesniak
91657bfd51
r24554: Add internal implementation (before api function) of group
...
info call.
rafal
(This used to be commit 75f81f862e
)
2007-10-10 15:02:13 -05:00
Stefan Metzmacher
b8cdadced4
r24551: rename dcerpc_interface_table -> ndr_interface_table
...
rename dcerpc_interface_list -> ndr_interface_list
and move them to libndr.h
metze
(This used to be commit 4adbebef5d
)
2007-10-10 15:02:12 -05:00
Andrew Bartlett
e0779e2d3b
r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
...
return full SIDs for the user SID and primary group sid.
This should help kai with his getpwnam work in winbind.
Andrew Bartlett
(This used to be commit 078671d501
)
2007-10-10 15:01:27 -05:00
Rafal Szczesniak
a47313851f
r24051: more monitor function calls and monitor msg names
...
convention change.
rafal
(This used to be commit 6ab10b2ed2
)
2007-10-10 15:01:18 -05:00
Andrew Bartlett
4a517b1433
r24011: Keep the connect handle around in libnet, in case we want it.
...
Andrew Bartlett
(This used to be commit e6ccdb6cea
)
2007-10-10 15:01:17 -05:00
Rafal Szczesniak
0d80514173
r23959: add more monitor messages support that's been sitting around on my
...
laptop for a while.
rafal
(This used to be commit c257363adb
)
2007-10-10 15:01:11 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Rafal Szczesniak
62b3aaa2e0
r23292: check for errors returned in a call result.
...
rafal
(This used to be commit 18c5341fad
)
2007-10-10 14:53:09 -05:00
Stefan Metzmacher
40cd2d7780
r22944: fix bug #4618 :
...
rename private -> private_data
metze
(This used to be commit 58551f2f28
)
2007-10-10 14:52:30 -05:00