1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

7954 Commits

Author SHA1 Message Date
Andrew Bartlett
352d6493bb r12979: Grr, I forgot to commit this file (from Brad Henry's libnet_site
patch) before the power went out :-)

Andrew Bartlett
2007-10-10 13:51:13 -05:00
Simo Sorce
bebd403523 r12977: Some code to implement the client side of the Dirsync control
Still investigating how it works.

Simo.
2007-10-10 13:51:13 -05:00
Andrew Bartlett
45f67b3f6d r12976: Patch from Brad Henry <j0j0@riod.ca>:
This patch pulls the AD site name generation and site join code from
libnet/libnet_join.c and puts it into a new file, libnet/libnet_site.c.
This way, a common means for site name, configuration dn and server dn
generation exists so it doesn't need to be rewritten in new code (such
as the future libnet_leave for example).

I've made a couple of changes, but nothing dramatic.  Nice work Brad!

Andrew Bartlett
2007-10-10 13:51:13 -05:00
James Peach
ae7541a377 r12972: Use single quotes in the showflags and showlayout targets to stop the
shell interpreting the expanded make variables.
2007-10-10 13:51:13 -05:00
Tim Potter
e9ec3a379c r12971: Fix spelling. 2007-10-10 13:51:13 -05:00
Stefan Metzmacher
8fc2b68aa8 r12959: hopefully fix bug #3365 this time
metze
2007-10-10 13:51:12 -05:00
Stefan Metzmacher
2cb587c779 r12958: don't bind to '255.255.255.255'
fix bug #3411

metze
2007-10-10 13:51:12 -05:00
Stefan Metzmacher
157fd2734d r12948: fix compiler warning
metze
2007-10-10 13:51:12 -05:00
Andrew Tridgell
c7951d17b1 r12947: added some error checking that I stumbled across while testing domain migration 2007-10-10 13:51:12 -05:00
Andrew Bartlett
701558b5fe r12945: Try to move closer to getting Samba3 import working again.
There still a few things to work out

Andrew Bartlett
2007-10-10 13:51:12 -05:00
Andrew Bartlett
916607d1d0 r12944: Update scripts in setup to match changes in the provision.js
DNS is now done as a seperate step, to assist in migrations.

Andrew Bartlett
2007-10-10 13:51:11 -05:00
Andrew Bartlett
ffe9042e15 r12943: Generate a SID for the domain join account using the modules, rather
than a hardcoded SID.

Fix the samldb module to return the what *was* the nextrid, rather
than the new nextrid (that is for next time).

Andrew Bartlett
2007-10-10 13:51:11 -05:00
Simo Sorce
982576d248 r12942: this way is better 2007-10-10 13:51:11 -05:00
Simo Sorce
900f4fd343 r12941: Add Attribute Scoped Search control
want to see what it does ?

do aq make test and try:
./bin/ldbsearch -H st/private/sam.ldb --controls=asq:1:member -s base -b 'CN=Administrators,CN=Builtin,DC=samba,DC=example,DC=com' 'objectclass=*'

have fun.
simo.
2007-10-10 13:51:11 -05:00
Stefan Metzmacher
40d7033a14 r12934: do somemore debugging of the received browse packets,
(so I may learn about the protocol, while watching the debug output)

metze
2007-10-10 13:51:11 -05:00
Stefan Metzmacher
811683e556 r12933: fix parsing of browse packets based on the infos on http://ubiqx.org/cifs/Browsing.html
metze
2007-10-10 13:51:09 -05:00
Stefan Metzmacher
8208a4abf0 r12932: export function prototypes
metze
2007-10-10 13:51:09 -05:00
Andrew Bartlett
51eded8180 r12931: Remove some prefixes. We have:
Login failed: Login Failed: Logon failure - please try again

In SWAT currently...

Andrew Bartlett
2007-10-10 13:51:08 -05:00
Andrew Bartlett
5c5a2974c9 r12930: Fix ADS join: I wasn't filling in the flag 'realm' variable any more.
Andrew Bartlett
2007-10-10 13:51:08 -05:00
Andrew Bartlett
def3195618 r12929: Fix more implict global and shadowing variables.
Andrew Bartlett
2007-10-10 13:51:07 -05:00
Andrew Bartlett
a38ceefd11 r12928: This patch improves the interaction between the vampire and provsion code.
Previously, we had to know (or guess) the host and domain guid at the
provision stage.  Now we query the database post-provision, to extract
the values and fill in the zone file.

This allows us to generate a correct zone file in the Windows migration case.

In an effort to make SWAT easier to use, I have removed and renamed
some of the provision options.

I have also fixed a nasty issue in my js code.  I had implictly
declared a global variable of the name 'join', with disasterious
results for any subsequent user of the string utility function:

esp exception - ASSERT at lib/appweb/ejs/ejsParser.c:2064, 0

Backtrace:
        [ 0]       substitute_var:20   ->               list[i] = join("", list2)
        [ 1]           setup_file:9    ->       data = substitute_var(data, subobj)

Andrew Bartlett
2007-10-10 13:51:07 -05:00
Andrew Bartlett
01e98966ca r12927: Fix typo. 2007-10-10 13:51:07 -05:00
Andrew Bartlett
d092b0493d r12926: Syncronsise GUIDs on users and domains from the server. These also
appear in DNS, so need to match.

Andrew Bartlett
2007-10-10 13:51:07 -05:00
Simo Sorce
dd386bdc6c r12925: implement client side of ASQ control 2007-10-10 13:51:07 -05:00
Andrew Bartlett
f3aa702944 r12919: Ensure we never 'extend' the session key length, or fill in past the
length of the (possibly null) pointer.

In reality this should come to us either 16 or 0 bytes in length, but
this is the safest test.

This is bug 3401 in Samba3, thanks to Yau Lam Yiu <yiuext at cs.ust.hk>

Andrew Bartlett
2007-10-10 13:51:03 -05:00
Andrew Bartlett
e13cb0ab17 r12918: Don't tell the user the difference between 'no such user' and 'wrong
password'.

Andrew Bartlett
2007-10-10 13:51:02 -05:00
Simo Sorce
a7e2fe3cb3 r12917: fix decoding of ldap controls
some more work on timeouts
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
e70ca698ce r12911: try to fix bug #3365
metze
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
1768a698a4 r12910: fix bug #3069
metze
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
a6f279bc43 r12909: add an ldb module for the wins.ldb,
it currently doesn't do much, but it's later
prevent adding corrupted records via ldbedit,
and will take care of the versionID counter

metze
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
d300d56fb7 r12908: use '_' also for indication we want to ask for the localmaster browser,
as '-' make problems with popt

metze
2007-10-10 13:51:01 -05:00
Stefan Metzmacher
b206c5e87c r12907: skip some tests for make quicktest in NBT-WINSREPLICATION
metze
2007-10-10 13:51:01 -05:00
Stefan Metzmacher
c52436108d r12906: return the correct nb_flags
metze
2007-10-10 13:51:01 -05:00
Simo Sorce
fa1ae9a44b r12905: add some ldap policies
not yet enforced except for the initial connection timeout
2007-10-10 13:51:01 -05:00
Andrew Bartlett
918358cee0 r12903: Factor out a new routine libnet_RpcConnectDCInfo, to both connect to
the remote sever, and to query it for domain information.

Provide and use this information in the SamSync/Vampire callbacks, to allow a
parallel connection to LDAP, if we are talking to AD.  This allows us
to get at some important attributes not exposed in the old protocol.

With this, we are able to do a all-GUI vampire of a AD domain from
SWAT, including getting all the SIDs, servicePrincipalNames and the
like correct.

Andrew Bartlett
2007-10-10 13:51:00 -05:00
Andrew Bartlett
c2eca05074 r12902: Fix 'make quicktest'.
Andrew Bartlett
2007-10-10 13:51:00 -05:00
Stefan Metzmacher
0e1ad08a85 r12899: - fix warnings on AIX
- fix compilation of auth/kerberos/krb5_init_context.c on AIX

metze
2007-10-10 13:51:00 -05:00
Stefan Metzmacher
d28c8ce66d r12898: prepare the 'wins hook' feature, but we only debug out a 'TODO: run script ...'
metze
2007-10-10 13:51:00 -05:00
Stefan Metzmacher
677c1aa466 r12897: make it possible to use nosync transaction to speed things up,
(just for testing)

metze
2007-10-10 13:51:00 -05:00
Stefan Metzmacher
de7b0b2dc9 r12896: IRIX make will fallback to gmake with this,
as normal IRIX make doesn't support shell commands or functions
in $(FOO) variables

metze
2007-10-10 13:50:59 -05:00
Andrew Bartlett
26946c90e8 r12895: Error strings save lives.
err, they save time at least.  The correct use of an error string in
this case quickly pinpoited an overzealous check, and saved me hours
of painful debugging.

Andrew Bartlett
2007-10-10 13:50:59 -05:00
Andrew Bartlett
31fd39f356 r12894: Add more detail to error messages.
Andrew Bartlett
2007-10-10 13:50:59 -05:00
Andrew Bartlett
7c9f8e524b r12893: Filling in *error_string is critical for SWAT, as the errors otherwise
do not propogate back to the user, they just end up in the logfile.

Andrew Bartlett
2007-10-10 13:50:59 -05:00
Andrew Bartlett
a5e7c17c34 r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.
Doing this required reworking ejsnet, particularly so it could take a
set of credentials, not just a username and password argument.

This required fixing the ejsnet.js test script, which now adds and
deletes a user, and is run from 'make test'.  This should prevent it
being broken again.

Deleting a user from ejsnet required that the matching backend be
added to libnet, hooking fortunetly onto already existing code for the
actual deletion.

The js credentials interface now handles the 'set machine account' flag.

New functions have been added to provision.js to wrap the basic
operations (so we can write a command line version, as well as the web
based version).

Andrew Bartlett
2007-10-10 13:50:59 -05:00
Andrew Bartlett
7b169aad3f r12891: We no longer manually set the 'name' attribute.
Andrew Bartlett
2007-10-10 13:50:58 -05:00
Andrew Bartlett
630b4b4dc5 r12887: Add the icon from samba.org to SWAT.
Andrew Bartlett
2007-10-10 13:50:58 -05:00
Andrew Bartlett
a3b3e09a9a r12886: Rename 'secure_channel_type' parameter to domain join as 'join_type'.
Andrew Bartlett
2007-10-10 13:50:58 -05:00
Andrew Bartlett
8f7d14048f r12883: Fix the build...
Andrew Bartlett
2007-10-10 13:50:57 -05:00
Andrew Bartlett
f4f4dcf217 r12882: Allow the netbios name to be specified at all times.
Andrew Bartlett
2007-10-10 13:50:57 -05:00
Andrew Bartlett
c9402f9227 r12881: Hard-coded defaults are silly. We have smb.conf for a reason.
Andrew Bartlett
2007-10-10 13:50:57 -05:00