1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

9162 Commits

Author SHA1 Message Date
Shirish Kalele
cbb6e2fbdb Add RESOLVE_DFSPATH to mkdir operations in HEAD. -
Jim McDonough
99437db17a Use samr connect4, then fall back to samr connect if it fails. This is
what 2k does.
-
Jim McDonough
ed2370b91f Add client side support for samr connect4 (0x3e). Seems to have one
additional parm compared to samr connect, but I've only seen 0x00000002
in that field...
-
Tim Potter
6a4202a105 Updated smbcontrol manpage for new printnotify commands.
Jerry, what's the latest on rebuilding doco from source?  I've no idea
whether this actually compiles or not.
-
Tim Potter
aa93db5abe Merge some usage info from APPLIANCE_HEAD. -
Tim Potter
f8072d964f Merge of case fixes from APPLIANCE_HEAD. -
Jelmer Vernooij
c03d8bc24d Add indent argument to put function name and type on same line -
for satisfying the autoprototyper and abartlet
-
Jelmer Vernooij
5f2c2a114b Update CodingSuggestions to include 'indent' arguments for the samba coding
style
-
Andrew Bartlett
f393de2310 Make 'remote_machine' private to lib/substitute.c, and fix all the user to use
the new accessor functions.

Andrew Bartlett
-
Andrew Bartlett
e57a896f06 Fix the %m security bug again - and try to make it harder to reintroduce in
future.

This moves us from fstrcpy() and global variables to 'get' and 'set' functions.

In particular, the 'set' function sainity-checks the input, in the same way as
we always have.

Andrew Bartlett
-
Jelmer Vernooij
bb1c450199 Adding pdb_xml and pdb_mysql passdb modules.
Added some consts to pdb_test to follow pdb_methods struct more strictly
-
Gerald Carter
b6b64d06a6 one line merge from APP_HEAD -
Gerald Carter
9c6b930068 delete printer driver fix from APP_HEAD -
Gerald Carter
11ddfd9cfa printing change notification merge from APPLIANCE_HEAD -
Andrew Bartlett
35eefe7a19 Samba dependency hell claim's another victim...
Back out last night's patch to to reduce -l dependencies until we can ensure
that *all* configurations/platforms work...

Andrew Bartlett
-
Tim Potter
fe43c2ac2d Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD. -
Jim McDonough
521eed1277 Hmm, had too many objects added last time in the nmbd changes. Don't
need all of them.  Hopefully this will fix a few builds.
-
Andrew Bartlett
d5f2e33b34 Patch from Steve Langasek <vorlon@netexpress.net> to split up our -l
dependencies.  This benifits packagers (like debian) becouse then our client
code won't have references to 'server only' libraries.

(In particular, it removes the client dependency on CUPS, which was raised in
a debian bug report).

Andrew Bartlett
-
Andrew Bartlett
0118e459b6 Add 'const' to the function prototypes to match the recent commit. -
Andrew Bartlett
122cf648d7 Add some more const :-)
This also makes it a easier to see which paramaters are 'in', and which are
'out'.

Andrew Bartlett
-
Andrew Bartlett
fd0ebf976e Add const to a pile of const to *DOM_SID paramaters.
Andrew Bartlett
-
Jim McDonough
ef984b9961 Ooops...forgot to put this in with the new nmbd samlogon response code.
THis should fix the build.
-
Jim McDonough
059a352ebb Add AD version of samlogon replies for getdc. ATM it will only function
if you have an ADS DC.
-
Jim McDonough
2663446349 Add SAMR 0x3e, which is samr_connect4. Seems to be the same as our
existing connect (which I've been told is really connect2), with one
extra dword.  We've only seen 0x00000002 there...
-
Andrew Bartlett
0e420878f2 Try to bind with LDAPv3 if possible.
Andrew Bartlett
-
Andrew Bartlett
17136a88c3 Back out idra's change (at his request) - the values in the tdb *should* be
upper cased already.

However, if you created your registry tdb in the very early versions of jerry's
patch, you could find that usrmgr doesn't function.  Simply delete the
registry.tdb, it will be recreated on startup.

Andrew Bartlett
-
Andrew Tridgell
3b0e60e522 fixed 'net ads chostpass' for new ads structures -
Andrew Tridgell
57916316ff when using netbios lookup methods make sure we try any BDCs even if
we get a response from WINS for a PDC, if the PDC isn't responding.
-
Andrew Tridgell
2ee0abb50f fixed a memory corruption bug in ads_try_dns() -
Tim Potter
2f46bdeb4f Compile fix for new cli_lsa_enum_trust_dom() argument list. -
Andrew Tridgell
3f6ca04003 fixed a memory corruption bug in the wins code -
Andrew Tridgell
87c34a974a added 'net rpc testjoin' and 'net ads testjoin' commands
unfortuately we don't seem to be able to auto-test the ADS join due to
a rather nasty property of the GSSAPI library.
-
Tim Potter
28ba237a9e Spelling fix. -
Andrew Tridgell
68e70b000b fixed wbinfo -t for netbiosless domains -
Andrew Bartlett
ce6c8a647c I must have missed this when I was adding 'const' to these earlier...
Andrew Bartlett
-
Andrew Bartlett
8405bccd4e Try to make this easier to debug - display the username that failed.
Andrew Bartlett
-
Andrew Tridgell
e358d7b24c This fixes a number of ADS problems, particularly with netbiosless
setups.

- split up the ads structure into logical pieces. This makes it much
  easier to keep things like the authentication realm and the server
  realm separate (they can be different).

- allow ads callers to specify that no sasl bind should be performed
(used by "net ads info" for example)

- fix an error with handing ADS_ERROR_SYSTEM() when errno is 0

- completely rewrote the code for finding the LDAP server. Now try DNS
  methods first, and try all DNS servers returned from the SRV DNS
  query, sorted by closeness to our interfaces (using the same sort code
  as we use in replies from WINS servers). This allows us to cope with
  ADS DCs that are down, and ensures we don't pick one that is on the
  other side of the country unless absolutely necessary.

- recognise dnsRecords as binary when displaying them

- cope with the realm not being configured in smb.conf (work it out
  from the LDAP server)

- look at the trustDirection when looking up trusted domains and don't
  include trusts that trust our domains but we don't trust
  theirs.

- use LDAP to query the alternate (netbios) name for a realm, and make
  sure that both and long and short forms of the name are accepted by
  winbindd. Use the short form by default for listing users/groups.

- rescan the list of trusted domains every 5 minutes in case new trust
  relationships are added while winbindd is running

- include transient trust relationships (ie. C trusts B, B trusts A,
  so C trusts A) in winbindd.

- don't do a gratuituous node status lookup when finding an ADS DC (we
  don't need it and it could fail)

- remove unused sid_to_distinguished_name function

- make sure we find the allternate name of our primary domain when
  operating with a netbiosless ADS DC (using LDAP to do the lookup)

- fixed the rpc trusted domain enumeration to support up to approx
  2000 trusted domains (the old limit was 3)

- use the IP for the remote_machine (%m) macro when the client doesn't
  supply us with a name via a netbios session request (eg. port 445)

- if the client uses SPNEGO then use the machine name from the SPNEGO
  auth packet for remote_machine (%m) macro

- add new 'net ads workgroup' command to find the netbios workgroup
  name for a realm
-
Simo Sorce
5a257096e9 passwords where not checked (you cannot check if the same buffer differs from itself).
they where alo not clean after use!

Simo.
-
Simo Sorce
2ad0e81c8d commented out strupper before key check against internal db, it's no good
to check for uppercased strings when we store them not uppercased.

jerry, this fix is needed to make usrmgr.exe work again.
meanwhile we found out that NT_STATUS code may not be appropriate there.
In particular it seem that an NT PDC will send back 02 as error
(ERRbadfile) not 0xc000000f (NT_STATUS_NO_SUCH_FILE NT)

I think further investigation is need to understand which are aprropriate
return codes here.
-
Andrew Bartlett
eb3354aa6c Now that I got the function arguments sane, remove the silly (void **) casts
from some of the callers.

Andrew Bartlett
-
Andrew Tridgell
a7588f21c2 fixed a bug where we were truncating the returned names in a netbios
name status query to 14 bytes, so we could not join a DC who had a
netbios name of 15 bytes in length.
-
Simo Sorce
cfc03b9257 updates the log level parameter man section
can someone regenerate and commit the other formats?
thanks
-
Simo Sorce
7532e82896 fix log level, set a default, and also copy the value set in smb.conf into parm_struct.ptr
this one also fixes log level not shown in swat
fix swat help system
-
Jim McDonough
8e906a9481 Fix length on mailslots. Looks like it should have been 0x17, not decimal 17. -
Jelmer Vernooij
d234f04a5f Escape ampersand(&) to better comply to SGML syntax -
Tim Potter
cb946b5dad Moved rpc client routines from libsmb back to rpc_client where they belong. -
Tim Potter
76eacaa285 Added connect, session_request, session_setup and tconx methods. -
Tim Potter
10889241d5 Broke out unpacking of a username/password stored in a Python
dictionary into a separate function.
-
Tim Potter
7bf9ca6ca3 Merge of print notify fixes from APPLIANCE_HEAD. -
Tim Potter
81322f4d63 Fixed compiler warning. -