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

1692 Commits

Author SHA1 Message Date
Simo Sorce
60d4aabc32 r15971: Obey the manpage description and make changesecretpw accept a password via stdin 2007-10-10 11:17:15 -05:00
Gerald Carter
0a81af4fef r15906: smbpasswd help text for -W option (patch from Aruna Prabakar <aruna.prabakar@hp.com> 2007-10-10 11:17:12 -05:00
Jeremy Allison
a8eb1186a1 r15890: Use correct enum type (bug #3722) from Jason Mader <jason@ncac.gwu.edu>.
Jeremy.
2007-10-10 11:17:12 -05:00
Günther Deschner
741602e03a r15703: Fix d_printf call.
Guenther
2007-10-10 11:17:08 -05:00
Gerald Carter
ad1f947625 r15701: change 'net ads leave' to disable the machine account in the domain (since removal implies greater permissions that Windows clients require) 2007-10-10 11:17:08 -05:00
Gerald Carter
ae2bf464c4 r15680: use the user creds when calling net_set_machine_spn() rather than the machine creds (just like WinXP) 2007-10-10 11:17:07 -05:00
Volker Lendecke
a85dfb9eff r15657: Fix some Tru64 warnings 2007-10-10 11:17:05 -05:00
Simo Sorce
51df47c772 r15646: Implement an setdomainsid command as well 2007-10-10 11:17:05 -05:00
Jim McDonough
ae56154fc7 r15630: adapt smbclient fix to smbtree to enable long share names 2007-10-10 11:17:03 -05:00
Volker Lendecke
696e210bf6 r15608: Fix a couple of Coverity errors 2007-10-10 11:17:03 -05:00
Gerald Carter
d933ac273d r15597: more ads join fixes -- we can only set the PWDNOEXP and DES_ONLY acb flags on the setuserinfo(), not the createuser info call 2007-10-10 11:17:02 -05:00
Volker Lendecke
0ece5b32f9 r15566: Fix Coverity bug # 284. The lp_ldap_xx_suffix function only return NULL if
talloc fails.

Volker
2007-10-10 11:17:01 -05:00
Gerald Carter
00c795e366 r15561: Should re-fix older systems without RC4-HMAC support 2007-10-10 11:17:01 -05:00
Gerald Carter
b69ac0e304 r15560: Since the hotel doesn't have Sci-Fi and no "Doctor Who"....
Re-add the capability to specify an OU in which to create
the machine account.  Done via LDAP prior to the RPC join.
2007-10-10 11:17:01 -05:00
Günther Deschner
8dd925c5fb r15559: Smaller fixes for the new cldap code:
* replace printf to stderr with DEBUG statements as they get printed in
  daemons
* "net ads lookup" return code

Guenther
2007-10-10 11:17:01 -05:00
Gerald Carter
d19dad8815 r15549: removing rhosts and 'hosts equiv' authentication features 2007-10-10 11:16:58 -05:00
Gerald Carter
4c4ea7b20f r15543: New implementation of 'net ads join' to be more like Windows XP.
The motivating factor is to not require more privileges for
the user account than Windows does when joining a domain.

The points of interest are

* net_ads_join() uses same rpc mechanisms as net_rpc_join()
* Enable CLDAP queries for filling in the majority of the
  ADS_STRUCT->config information
* Remove ldap_initialized() from sam/idmap_ad.c and
  libads/ldap.c
* Remove some unnecessary fields from ADS_STRUCT
* Manually set the dNSHostName and servicePrincipalName attribute
  using the machine account after the join

Thanks to Guenther and Simo for the review.

Still to do:

* Fix the userAccountControl for DES only systems
* Set the userPrincipalName in order to support things like
  'kinit -k' (although we might be able to just use the sAMAccountName
  instead)
* Re-add support for pre-creating the machine account in
  a specific OU
2007-10-10 11:16:57 -05:00
James Peach
eb31ef3a0e r15529: Initialise our saved uid and gid so that we can tell when
we created the profiling shmem segment and don't bogusly
refuse to look at it.
2007-10-10 11:16:56 -05:00
Günther Deschner
a75dd80c62 r15523: Honour the time_offset also when verifying kerberos tickets. This
prevents a nasty failure condition in winbindd's pam_auth where a tgt
and a service ticket could have been succefully retrieved, but just not
validated.

Guenther
2007-10-10 11:16:55 -05:00
Volker Lendecke
f21adc04f7 r15471: Clarify error message 2007-10-10 11:16:51 -05:00
Gerald Carter
cf71f88a3c r15462: replace the use of OpenLDAP's ldap_domain2hostlist() for
locating AD DC's with out own DNS SRV queries.
Testing on Linux and Solaris.
2007-10-10 11:16:49 -05:00
Günther Deschner
847882a983 r15460: Prefer to use the indexed objectCategory attribute (instead of
objectClass which is not indexed on AD) in LDAP queries.

Guenther
2007-10-10 11:16:49 -05:00
Günther Deschner
9e15b1659c r15428: Add "smbcontrol winbind onlinestatus" for debugging purpose.
Guenther
2007-10-10 11:16:43 -05:00
James Peach
0b5e07e12d r15424: Implement a "stacktrace" smbcontrol option using libunwind's remote
stack tracing support. This provides an easy way for users to provide
stack traces (hopefully it will be implemented on something other than
ia64).
2007-10-10 11:16:42 -05:00
Jeremy Allison
cdc3aa9d07 r15341: Ok I give up, I've been beaten by bug reports. People
just don't get why "guest ok" is not allowed in usershares.
Added "usershare allow guests" bool parameter that allows
this, reved usershare file version to VERSION#2 which
allows this. Updated user tools.
This should now be (finally) finished and I'll add
the new parameter docs and a HOWTO.
Jeremy.
2007-10-10 11:16:36 -05:00
Jeremy Allison
780b71d300 r15336: Unknown escape sequence: '\305' - should have been '\n'.
(How did that get in there ?).
Jeremy
2007-10-10 11:16:36 -05:00
Gerald Carter
3522b53aec r15311: look at the NT password (not lanman one) when determining if smbpasswd -e should probably for a password 2007-10-10 11:16:35 -05:00
Günther Deschner
5557ada694 r15305: Let winbind search by sid directly (or in windows terms: "bind to a
sid"); works in all AD versions I tested. Also add "net ads sid" search
tool.

Guenther
2007-10-10 11:16:33 -05:00
Günther Deschner
e55e1e1e96 r15198: Mention the auditing tool in "net rpc help".
Guenther
2007-10-10 11:16:28 -05:00
Günther Deschner
ba81b508ca r15194: We need to be able to join as PDC as well. Thanks to Andrew Bartlett.
Guenther
2007-10-10 11:16:28 -05:00
Volker Lendecke
bb8c69162f r15173: Fix a non-critical memleak 2007-10-10 11:16:27 -05:00
Alexander Bokovoy
f068862e56 r15152: Fix a case when target is offline. Jerry, this needs to be in 3.0.23pre1 2007-10-10 11:16:26 -05:00
Volker Lendecke
0ef5e4372c r15137: Refuse to join if our netbios name is longer than 15 chars. I think this is
sufficient to fix bug #3659.

Volker
2007-10-10 11:16:26 -05:00
Volker Lendecke
a6e88785e7 r15136: Fix join consistency check 2007-10-10 11:16:25 -05:00
Günther Deschner
22b6875897 r15123: Don't even try to join with an inproper configuration.
Guenther
2007-10-10 11:16:25 -05:00
Gerald Carter
a95d11345e r15053: fix portabilities issues between 32-bit winbind clients and a 64-bit winbindd server 2007-10-10 11:16:00 -05:00
Günther Deschner
0fed66926f r15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
servers. Also add a new "net rpc audit" tool. The lsa query infolevels
were taken from samb4 IDL, the lsa policy flags and categories are
partly documented on msdn. I need to cleanup the double
lsa_query_info_policy{2}{_new} calls next.

Guenther
2007-10-10 11:15:59 -05:00
Jeremy Allison
08e52ead03 r15018: Merge Volker's ipc/trans2/nttrans changes over
into 3.0. Also merge the new POSIX lock code - this
is not enabled unless -DDEVELOPER is defined.
This doesn't yet map onto underlying system POSIX
locks. Updates vfs to allow lock queries.
Jeremy.
2007-10-10 11:15:57 -05:00
Volker Lendecke
ba41c62b8b r15011: Fix bug # 2413. net rpc info can't reliably work anonymously anymore.
Volker
2007-10-10 11:15:56 -05:00
James Peach
ffe1a2e23f r14900: Separate words in error message. 2007-10-10 11:15:53 -05:00
James Peach
5f4f4cbe6f r14899: Add missing semi-colon. 2007-10-10 11:15:53 -05:00
James Peach
56bc02d644 r14898: This change is an attempt to improve the quality of the information that
is produced when a process exits abnormally.

First, we coalesce the core dumping code so that we greatly improve our
odds of being able to produce a core file, even in the case of a memory
fault. I've removed duplicates of dump_core() and split it in two to
reduce the amount of work needed to actually do the dump.

Second, we refactor the exit_server code path to always log an explanation
and a stack trace. My goal is to always produce enough log information
for us to be able to explain any server exit, though there is a risk
that this could produce too much log information on a flaky network.

Finally, smbcontrol has gained a smbd fault injection operation to test
the changes above. This is only enabled for developer builds.
2007-10-10 11:15:53 -05:00
Jeremy Allison
75be5c17bc r14831: Fix possible null deref. Coverity #279.
Jeremy.
2007-10-10 11:15:49 -05:00
Günther Deschner
d17712f976 r14757: Make sure we only send out a CLDAP request to an connected AD server.
Guenther
2007-10-10 11:15:46 -05:00
Jeremy Allison
9117713c5e r14743: Fix coverity bug #227. Possible deref of null pointer
in error code path.
Jeremy.
2007-10-10 11:15:45 -05:00
Gerald Carter
08d201806f r14699: allow 'net sam addmem' to accept a SID for the member 2007-10-10 11:15:44 -05:00
Jim McDonough
b4ec93f5a2 r14683: Get rid of hardcoded output file. With no arg, print to stdout,
otherwise append to output file specified.
2007-10-10 11:15:43 -05:00
Jim McDonough
0d4bd93a5c r14681: Get rid of hardcoded /tmp/add.ldif and /tmp/mod.ldif files. Is there a
different directory the temp files should be in, or is /tmp ok?

Still have to get rid of the output file hardcoding, but that is to
come, because I need to cleanup stdout.
2007-10-10 11:15:43 -05:00
Günther Deschner
afc519530f r14585: Tighten argument list of kerberos_kinit_password again,
kerberos_kinit_password_ext provides access to more options.

Guenther
2007-10-10 11:15:38 -05:00
Gerald Carter
3137fe5068 r14580: add 'net sam createbuiltingroup' to map BUILTIN local groups to a gid 2007-10-10 11:15:38 -05:00