1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

1301 Commits

Author SHA1 Message Date
Andrew Bartlett
c6d511d8dd Merge from HEAD - the usual popt-needs-static for Sun CC.
(This used to be commit 2fabc356769477cc8bdbb23ecd8fee1e7d9fdb7d)
2003-04-30 14:25:13 +00:00
Andrew Bartlett
90d17c04ca Fix for AIX - you can't qualify a return type as const, when it's not a
pointer.

(merge from HEAD).

Andrew Bartlett
(This used to be commit 9e3d0cd9dea1234d6e6a26d03995b5edfaed5186)
2003-04-30 14:01:16 +00:00
Andrew Bartlett
e13d513739 Sun CC requires constant initialisers, so use a static here.
(a common bug with popt stuff, becouse it's fine with GCC).
(This used to be commit edbab685d181887f8cb055cc9dc175b2772bd0ff)
2003-04-30 13:22:02 +00:00
Gerald Carter
ada60ce8a2 smbgroupedit has been replaced by 'net groupmap'
remove related file.  Left in EHAD for reference (for now)
(This used to be commit 2e7537d8e29171bfddac984911c55cf567886956)
2003-04-29 15:32:14 +00:00
Jim McDonough
7b126ce7a0 Like net rpc user -l, let net ads user -l allow more than 50 characters in
comments.
(This used to be commit b5b1732b1144c9bcf5c3b08f6f9da9ad8875f5f7)
2003-04-29 15:15:31 +00:00
Jim McDonough
ad8e83f78f Allow net rpc user -l to list longer than 50 characters in a user comment.
Net.exe on windows won't allow more than 50 characters to be entered, but
through AD you can have much more than this.
(This used to be commit ca2886c9385361ea401e3e0b47c26cb39adcadbc)
2003-04-29 15:09:54 +00:00
Gerald Carter
c6d550b99b adding ifdef'd code to add alias membership for vampire
(This used to be commit 2557b94519fbb3110948a3c6a3f412622757d2b0)
2003-04-29 14:42:49 +00:00
Andrew Bartlett
281d95e2f3 Use a common function to create the SAM_ACCOUNT being used to add accounts
to the system.  This means that we always run Get_Pwnam(), and can never add
FOO when foo exists on the system (the idea is to instead add foo into
the passdb, using it's full name, RID etc).

Andrew Bartlett
(This used to be commit bb79b127e02cefae13c822fd0fd165f1f214b740)
2003-04-29 09:43:17 +00:00
Tim Potter
90dbd21cd0 Fix compiler warning.
(This used to be commit f127f964250c86986996afab905b40cff420bfd5)
2003-04-28 06:19:11 +00:00
Tim Potter
4ea3cd2629 Merge of const fixes from HEAD.
(This used to be commit a847ebd82732cc2b430c58c3b287a46db0e35ba1)
2003-04-28 05:18:30 +00:00
Simo Sorce
43b3ea968b back port from HEAD
(This used to be commit f7cfdf20b7b3b7743c0c3af4ff62fdde00e45fdc)
2003-04-26 01:15:57 +00:00
Tim Potter
bf3e2980bc Merge of missed another while condition when enumerating aliases.
(This used to be commit ee78196bcfe52dfdda0b7fd44a6701e2cf5f7d5a)
2003-04-25 04:09:01 +00:00
Gerald Carter
f4187018ea fix and if () that should be an 'else if()'
(This used to be commit 82f024723c5312fe2b6a57915de8e78c96f80ef0)
2003-04-25 02:26:23 +00:00
Tim Potter
d3ba70356e Merge:
>When calling cli_samr_enum_{dom,als}_groups in a while loop, the
>terminating condition should be result != STATUS_MORE_ENTRIES, not
>result == NT_STATUS_OK otherwise we get stuck in an infinite loop
>when there's any sign of trouble.
(This used to be commit 4998a72cf8e3a2b254dc409a36b9bbd118bdc4fd)
2003-04-25 02:00:47 +00:00
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