1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

1287 Commits

Author SHA1 Message Date
Gerald Carter
9530bbe2ad groupmap delet should take a name or a SID
(This used to be commit d9277bd06401cb040390739ae730c8991736c886)
2003-04-24 16:47:32 +00:00
Andrew Bartlett
11c453951a More fun with Sun CC needing constant initializers
(This used to be commit ce3dd8fd69231798185e3e3bb988775e5671e070)
2003-04-23 13:59:32 +00:00
Andrew Bartlett
327ad645dd Fix up non-constant initialisers for Sun's CC.
Andrew Bartlett
(This used to be commit 82ba1b4d16da587c5e21739b11c5d84a575534ad)
2003-04-23 10:28:56 +00:00
Andrew Bartlett
9265628c20 This const isn't quite vaild C.
Andrew Bartlett
(This used to be commit de96c1aaca9006696d61aa3d07151c0f74516e63)
2003-04-23 09:32:29 +00:00
Gerald Carter
cfe53bd066 allow the unix group in a mapping to be changed; doesn't work with LDAP right now but should be ok with tdb's
(This used to be commit fdacad185c4f78958d56bccbd69a0f2628f1b792)
2003-04-23 00:34:31 +00:00
Gerald Carter
651ff45e8d don't reset the group type unless specified
(This used to be commit 541f40a144461ca139ac53837d3f31ce6972d18c)
2003-04-22 18:03:55 +00:00
Gerald Carter
9465f4b2c4 default new groups to domain groups
(This used to be commit 665d21b8656bf85f9b372b44ff1f4af414551e5a)
2003-04-22 05:57:49 +00:00
Andrew Bartlett
96e1202f23 Fix up bugs in the new 'store sec_channel type' code - we were always joining
as a BDC.

Andrew Bartlett
(This used to be commit f35674e7552dcfece342e7bece10bbfb0e81cbf8)
2003-04-22 05:32:01 +00:00
Gerald Carter
cbdb436e21 support referencing group by sid in all operations; allow group name to be changed
(This used to be commit b6ccdb8f7b72eed4c4248db43fefa09b6f084852)
2003-04-22 05:14:21 +00:00
Gerald Carter
3996f116c7 removing some ifdef'd out code
(This used to be commit 43942398af7e7589fcf8534099eccf277f6e4295)
2003-04-22 02:52:15 +00:00
Jeremy Allison
530dc71732 Fixup a few typos for Jerry.
Jeremy.
(This used to be commit 1e5fe87d75ef4bb9d6af787abc501dcf105c9c6c)
2003-04-21 23:23:24 +00:00
Gerald Carter
79d3731d98 * fix segfault when no vfs objects defined
* add "sid=..." to 'net groupmap add'
(This used to be commit e5f6676639b5552f7dec90091c53cf14e78088ee)
2003-04-21 19:43:25 +00:00
Andrew Bartlett
4437f7f76d Make it easier to select which domain to show the sid for.
(This used to be commit 4c7efe25c3f2336938050086ffe5f4cfe462e6f6)
2003-04-21 17:25:54 +00:00
Andrew Bartlett
f071020f5e Merge from HEAD - save the type of channel used to contact the DC.
This allows us to join as a BDC, without appearing on the network as one
until we have the database replicated, and the admin changes the configuration.

This also change the SID retreval order from secrets.tdb, so we no longer
require a 'net rpc getsid' - the sid fetch during the domain join is sufficient.
Also minor fixes to 'net'.

Andrew Bartlett
(This used to be commit 876e00fd112e4aaf7519eec27f382eb99ec7562a)
2003-04-21 14:09:03 +00:00
Gerald Carter
a1fb9f2176 Merging smbgroupedit into 'net groupmap'. Not entirely done.
Need to check on where the privilege code is sitting
and update the docs.

Examples:

root# bin/net help groupmap
net groupmap add
  Create a new group mapping
net groupmap modify
  Update a group mapping
net groupmap delete
  Remove a group mapping
net groupmap list
  List current group map

# bin/net groupmap add
Usage: net groupmap add rid=<int> name=<string> type=<domain|local|builtin> [comment=<string>]

# bin/net groupmap delete
Usage: net groupmap delete name=<string|SID>

# bin/net groupmap modify
Usage: net groupmap modify name=<string|SID> [comment=<string>] [type=<domain|local>
(This used to be commit f2fd0ab41ffbc0355db95529b6bda1b21aa4860a)
2003-04-19 05:53:55 +00:00
cvs2svn Import User
3dd0de3196 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit a50dc3f836a898d1aef08afbd12e7221db24440a) 2003-04-17 08:09:21 +00:00
Richard Sharpe
953aef482b More updates ...
(This used to be commit 410451f9478ff1e73cabc8ee2213ded4f08315c6)
2003-04-17 08:09:20 +00:00
Richard Sharpe
6584cde213 Updates to editreg.c to provide more functionality ...
Hopefully more coming ...
(This used to be commit 22d1819011de02351976bad778837a28ab45a449)
2003-04-17 06:20:29 +00:00
Jeremy Allison
09a50497d1 Fixes to make SCHANNEL work in 3.0 against a W2K DC. Still need to fix
multi-PDU encode/decode with SCHANNEL. Also need to test against WNT DC.
Jeremy.
(This used to be commit ff66d4097088409205b6bad5124a78ef9946010d)
2003-04-16 15:39:57 +00:00
Jelmer Vernooij
0abad3ad5c Check whether return status of poptGetNextOpt is -1, not EOF
(This used to be commit 1fefb776eec94efc7ea1b760dc4b80f61d61a158)
2003-04-16 14:31:10 +00:00
Jelmer Vernooij
8213a4dc2e Check for -1 not EOF as return value of poptGetNextOpt
(This used to be commit 84fba11ff0a649932e1f812408017ae4c5611083)
2003-04-16 14:24:45 +00:00
Andrew Bartlett
8a98adf7dd Fix segfault by getting this the right way around
(This used to be commit 8ba6148c69031e9a82687d4d006e1fa7ada21e91)
2003-04-16 14:23:01 +00:00
Andrew Bartlett
2cb0b91ed1 Store the type of 'sec channel' that we establish to the DC. If we are a
workstation, we have to use the workstation type, if we have a BDC account,
we must use the BDC type - even if we are pretending to be a workstation
at the moment.

Also actually store and retreive the last change time, so we can do
periodic password changes again (for RPC at least).

And finally, a couple of minor fixes to 'net'.

Andrew Bartlett
(This used to be commit 6e6b7b79edae3efd0197651e9a8ce6775c001cf2)
2003-04-16 10:20:14 +00:00
Jelmer Vernooij
9c3cecbdac Use the new modules system for passdb (merge from HEAD)
(This used to be commit 1755d5f66221a910863cfc8a197f8d792e6b6e3d)
2003-04-15 16:01:14 +00:00
Jelmer Vernooij
9397cdba52 - Change ADS CHOSTPASS -> ADS CHANGETRUSTPW
- Add general CHANGETRUSTPW function that calls ADS CHANGETRUSTPW or RPC CHANGETRUSTPW
(Merged from HEAD)
(This used to be commit f0982e1102276453d79e438ffb90c9fa305ff98b)
2003-04-14 22:27:09 +00:00
Jelmer Vernooij
7fcbdf00f6 Add some more functions for the modules (backport from HEAD):
- init_modules()
 - smb_probe_module()
(This used to be commit b3328dab2fa069af300b4076695bf6c359501111)
2003-04-14 22:23:02 +00:00
Jelmer Vernooij
10f2346810 Change ADS CHOSTPASS to ADS CHANGETRUSTPW and add a
general CHANGETRUSTPW that calls ADS CHANGETRUSTPW or RPC CHANGETRUSTPW
depending on what we have.
(This used to be commit 17d27db5c9d3511444fc2770d4452647284e8014)
2003-04-14 10:14:40 +00:00
Tim Potter
e9a4e1bb2e Merge: remove unused variables.
(This used to be commit dfa9412da567d2477ee5b1e6ecdc96b8dea3c21d)
2003-04-14 05:28:09 +00:00
Tim Potter
9251f3f237 Remove unused variables.
(This used to be commit 26901af91eaa119df0e1192be95b514ecf26c6a6)
2003-04-14 05:22:59 +00:00
Tim Potter
b0f49fcd53 Merge of Jelmer's usage updates for net.
(This used to be commit 6a5b88c95b3fd17431cda79e9aa2a593fef85100)
2003-04-14 04:00:37 +00:00
Tim Potter
00352663c4 Merge of bugfix for cli_lsa_query_info_policy() usage.
(This used to be commit ab64a0b1e7666b6612659b5720eda451c0ab4857)
2003-04-14 04:00:15 +00:00
Tim Potter
c79934c839 Merge rewrite of smbcontrol.
(This used to be commit 30ac37efec0698998ada135655eac8933bd3647f)
2003-04-14 03:59:25 +00:00
Tim Potter
5f82e261c6 Merge:
- Jelmer's latest popt changes
(This used to be commit 6a54d9a0a77c71664dc6cdbed1adf492c28c0cce)
2003-04-14 03:59:04 +00:00
Tim Potter
63cbbe2692 Merge Jelmer's popt updates from HEAD.
(This used to be commit 98e84b3e83d2a365c818ea64f9418edb29d690f2)
2003-04-14 03:30:20 +00:00
Jelmer Vernooij
6be6a341f8 Some small changes - typos, adding usage for some commands
and removing -j because it was not used at all.
(This used to be commit e3e2c1b27128f7b5a1f4bbc8093c75b0c12549b4)
2003-04-13 15:18:21 +00:00
cvs2svn Import User
a47d06a2c2 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 381649916ecbaddefbb6ee0e6137b7cc73eb54b1) 2003-04-13 13:50:46 +00:00
Gerald Carter
5b51fc4f06 smbcquota patch from metze
(This used to be commit 74fab8f0d24004b1dfd5ce0fd7402895652f941f)
2003-04-11 23:32:00 +00:00
Volker Lendecke
7238bf5f40 This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"

and it should work with the schannel. Needs testing against platforms
different from NT4SP6.

Volker
(This used to be commit eaef0d8aeff1aa5a067679be3f17e08d7434e1e8)
2003-04-09 15:54:17 +00:00
Volker Lendecke
803e23f403 This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"

and it should work with the schannel. Needs testing platforms
different from NT4SP6.

Volker
(This used to be commit ecd0ee4d248e750168597ccf79c389513bb0f740)
2003-04-09 15:47:06 +00:00
Jelmer Vernooij
291e8e4589 Use fprintf(f, ...) instead of plain printf() - patch by Ronan Waide
(This used to be commit 49926d706f9d24dbdd7a878e2362a27667175a5c)
2003-04-09 14:35:14 +00:00
Jelmer Vernooij
427fb4a281 Use fprintf(f, ...) instead of plain printf() - patch by Ronan Waide
(This used to be commit 890cc17c41b3940dcb7d4c2a52ab292bca7d18be)
2003-04-09 14:34:53 +00:00
Tim Potter
a72eafee54 Rewrite of smbcontrol - it was a bit of a mess. It should now be much
nicer to use and more hackable.

 - converted to popt

 - text message destinations (except for broadcast smbd) are resolved
   using files in piddir so the string 'winbindd' is now a destination

 - added --timeout option to specify timeout value

 - deleted complicated handling of debug args as separate command line
   arguments: use shell quoting instead

 - deleted interactive mode as punishment for using strtok() (-:

 - much improved command line argument checking

Some of this stuff was broken before I started (print notify,
profiling) but the basics still work (ping, pool-usage, debug,
debuglevel).
(This used to be commit 269f838dee257ee9badcae190f2c70b898676bc5)
2003-04-09 05:52:01 +00:00
Andrew Bartlett
6dce8c678a Merge the ntlm_auth updates (refactor, add --diagnostics) into Samba 3.0
Andrew Bartlett
(This used to be commit d711a1c95c92f5a89b43bf29bba8460b870d3b3a)
2003-04-07 07:10:53 +00:00
Tim Potter
25b1c37f6f Remove duplicate "tallocdump" message from tdb messaging system. The
same functionality exists as "pool-usage".

Move initialisation of this and dmalloc messages inside message_init().
(This used to be commit af6ecafcbbf65dbedc49b3a86da39ce608bdadac)
2003-04-07 06:13:36 +00:00
Richard Sharpe
a59565bf38 Some more good stuff from coolo.
(This used to be commit 41b320ffc560117c0184999e30cc69723f40acbe)
2003-04-04 23:39:16 +00:00
Tim Potter
e23cfba7f9 Fix compiler warning - cli_lsa_query_info_policy actually returns the
domain name.  We were passing in an already initialised string which was
causing the warning.
(This used to be commit 18685d137e2db6e4e93c655f1c4a97116a36c02c)
2003-04-04 00:41:07 +00:00
Jelmer Vernooij
d63b6446c8 Give warning if 'drvupgrade' doesn't get an argument
(This used to be commit 38d03f4f1a23963fbbb9046ac9f5ccfa5e3ee7b7)
2003-04-03 15:44:19 +00:00
Jelmer Vernooij
101b52e0be Give warning if 'drvupgrade' doesn't get a parameter
(This used to be commit 55d9ef08a7585f69466cd4c0b30ce33841d52b33)
2003-04-03 15:43:16 +00:00
Andrew Bartlett
de8a78e722 Print out the 'freindly' error message from winbind. Also print useful
information into it re the privilaged pipe.

Also clean up some bugs in winbindd_pam.c

Andrew Bartlett
(This used to be commit e73b01204a8625946ff0fb5f9fc99dd959eb801c)
2003-04-02 15:03:07 +00:00
Jelmer Vernooij
22c6b5be5a Fix searching master ip by bcast when old master has gone away (based on patch by Stephan Kulow <coolo@kde.org>)
(This used to be commit 5c0e4b4dc630bd304f53c37f2340f954190b7aef)
2003-04-02 14:11:51 +00:00