summaryrefslogtreecommitdiffstats
path: root/source4/libnet
Commit message (Collapse)AuthorAgeFilesLines
* s4: fix various warnings (not "const" related ones)Matthias Dieter Wallnöfer2009-10-021-1/+1
|
* s4-libnet: give sane error messages when functional levels don't matchAndrew Tridgell2009-10-021-8/+12
| | | | It is nice to tell the user why their command failed :-)
* s4:libnet_become_dc - add checks for valid domain/forest function levelsMatthias Dieter Wallnöfer2009-10-021-10/+52
| | | | | | | | | Add checks to make sure that we join only supported AD domains (we agreed that those are >= (Windows) 2003 Native per default - this is changeable with the "ads:function level" option). Add also checks to make sure that we cannot join domains which have a bigger function level than our DC capable function level (e.g. a (Windows) 2008 DC cannot join a (Windows) 2008 R2 domain).
* s4-libnet: fixed debug formattingAndrew Tridgell2009-09-281-2/+2
|
* s4-libnet: allow the functional level of becomeDC to be specifiedAndrew Tridgell2009-09-241-1/+2
| | | | | | | | Use ads:functional level = 4 for DS_DC_FUNCTION_2008_R2 See libds/common/flags.h
* s4-libnet: avoid a steal with references errorAndrew Tridgell2009-09-241-1/+2
|
* s4:libnet_become_dc - bump down the level requested by abartletMatthias Dieter Wallnöfer2009-09-211-1/+1
|
* s4:provision Use code to store domain join in 'net join' as wellAndrew Bartlett2009-09-202-284/+51
| | | | | | | | This ensures we only have one codepath to store the secret, and therefore that we have a single choke point for setting the saltPrincipal, which we were previously skipping. Andrew Bartlett
* s4-resolve: fixed a crash bug on timeoutAndrew Tridgell2009-09-191-1/+1
| | | | | | | We were creating the name resolution context as a child of lp_ctx, which meant when we gave up on a connection the timer on name resolution kept running, and when it timed out the callback crashed as the socket was already removed.
* s4:libnet_become_dc - Fix some uninitialised variablesMatthias Dieter Wallnöfer2009-09-171-3/+3
|
* s4/domain behaviour flags: Fix them up in various locationsMatthias Dieter Wallnöfer2009-09-171-1/+1
| | | | | | | | | | Additional notes: - Bump the level to Windows Server 2008 R2 (we should support always the latest version - if we provision ourself) - In "descriptor.c" the check for the "domainFunctionality" level shouldn't be needed: ACL owner groups (not owner user) are supported since Windows 2000 Server (first AD edition) - I took the argument from: http://support.microsoft.com/kb/329194
* s4-repl: don't do double replicationAndrew Tridgell2009-09-151-2/+4
| | | | | | | | When we replicate from a remote DC, we need to note the new uSN that the local changes have resulted in, and modify the uSN that the notify task uses to determine if it should send a ReplicaSync message back to the remote DC. Otherwise we end up always triggering a ReplicaSync every time we replicate from another DC
* s4/vampire: fixed i/j index mixup in vampire codeAndrew Tridgell2009-09-101-3/+3
|
* s4: allow repl:RODC=true/false to set ourselves as a RODCAndrew Tridgell2009-09-091-2/+6
| | | | | I think this is what windows DCs use to see that we are read-only, but I am not sure. Needs more testing.
* s4: fixed updaterefs options bitmapAndrew Tridgell2009-09-081-1/+1
|
* s4: fixed the secrets.ldb construction in libnetAndrew Tridgell2009-09-071-8/+8
| | | | | on a vampire join we were not putting the right attributes and objectclass on the secrets.ldb record
* show more reasonable object counts during a vampireAndrew Tridgell2009-09-031-4/+18
| | | | | | | | | 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!
* wrap the entire vampire operation in a transactionAndrew Tridgell2009-09-021-13/+24
| | | | | We want to grab the whole database, or none of it. This is also needed to get linked attributes right
* s4:libnet: use talloc_strdup() instead of talloc_reference()Stefan Metzmacher2009-07-312-2/+2
| | | | metze
* Fix compile of py_net.cAndrew Bartlett2009-07-281-1/+3
|
* s4:libnet Add in a 'credentials' parameter for python libnet_JoinAndrew Bartlett2009-07-281-7/+20
|
* s4:kerberos Add 'net export keytab' command for wireshark decryptionAndrew Bartlett2009-07-284-2/+84
| | | | | | | | | | | | 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
* Revert "s4:kerberos Add 'net export keytab' command for wireshark decryption"Stefan Metzmacher2009-07-274-85/+2
| | | | | | | | | | This reverts commit a40ce5d0d9d06f592a8885162bbaf644006b9f0f. This breaks the build... Andrew, please repush it, when it's fixed:-) metze
* s4:kerberos Add 'net export keytab' command for wireshark decryptionAndrew Bartlett2009-07-274-2/+85
| | | | | | | | | | | | 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
* Add missing includes.Jelmer Vernooij2009-07-191-0/+1
|
* s4:libnet: rename uint => uint32_t because uint is not portableStefan Metzmacher2009-07-154-6/+6
| | | | metze
* libds: share UF_ flags between samba3 and 4.Günther Deschner2009-07-132-2/+2
| | | | Guenther
* the settings structure needs to be initialisedAndrew Tridgell2009-07-021-0/+1
|
* use a talloc_reparent in a very ugly wayAndrew Tridgell2009-07-011-2/+11
| | | | this works around some terrible use of talloc in the libnet code
* use the new talloc_reparent in two placesAndrew Tridgell2009-07-011-1/+1
|
* s4:libnet Allow 'net password change' to work on expired passwordsAndrew Bartlett2009-06-188-7/+35
| | | | | | | | | 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
* fixed the client side password change codeAndrew Tridgell2009-05-251-61/+25
| | | | | | 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.
* s4:libnet Use str_list_make_single() in resolv codeAndrew Bartlett2009-05-141-1/+1
|
* Rework Samba4 to use the new common libcli/auth codeAndrew Bartlett2009-04-146-15/+9
| | | | | | | In particular, this is the rename from creds_ to netlogon_creds_, as well as other links to use the new common crypto. Andrew Bartlett
* Use common samsync delta decryption functions in libnet_samsync.cAndrew Bartlett2009-04-141-134/+2
| | | | Andrew Bartlett
* major upgrade to the ldb attribute handlingAndrew Tridgell2009-04-021-1/+1
| | | | | | | | | | | | | | 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.
* s4:cldap: rewrite the cldap library based on tsocketStefan Metzmacher2009-03-193-24/+34
| | | | metze
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-011-2/+2
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-011-1/+1
| | | | consistency with Samba 3.
* s4:libnet: s/new/nStefan Metzmacher2009-02-021-9/+9
| | | | metze
* s4:cldap: s/private/private_dataStefan Metzmacher2009-02-022-4/+4
| | | | metze
* s4:libnet/: s/private/private_dataStefan Metzmacher2009-02-024-12/+12
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-295-7/+7
| | | | | | | | | | | | | | | | | | | | 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
* s4 libnet: Add support for groupinfo by sid lookupKai Blin2008-12-292-24/+82
|
* s4 libnet: Add group_name member to struct libnet_GroupInfo's out struct.Kai Blin2008-12-292-3/+6
|
* s4:libnet_samdump_keytab: pass down event_context explicitStefan Metzmacher2008-12-291-1/+3
| | | | metze
* Fix compiler warnings in libnet.Jelmer Vernooij2008-12-236-18/+9
|
* s4-samr: fix samr callers after SAMR_FIELD_PASSWORD change.Günther Deschner2008-12-051-2/+2
| | | | Guenther
* s4-samr: fix samr passwdord_expired callers.Günther Deschner2008-11-281-3/+2
| | | | Guenther
* s4-samr: merge samr_QueryUserInfo{2} from s3 idl. (fixme: python)Günther Deschner2008-11-103-5/+12
| | | | Guenther