summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2009-07-30s3 net: Remove uid==0 check from net groupmapKai Blin1-7/+0
2009-07-30s3 net: i18n support for net group and net groupmapKai Blin2-139/+174
2009-07-30s3 net: i18n support for net fileKai Blin1-9/+9
2009-07-30s3 net: i18n for net eventlogKai Blin1-24/+32
2009-07-30s3 net: i18n support for net domKai Blin1-32/+32
2009-07-30s3 net: i18n support for net confKai Blin1-120/+123
2009-07-29s3 net: i18n support for net cacheKai Blin2-68/+70
2009-07-29s3 net: i18n for net ads gpoKai Blin1-78/+79
2009-07-29s3 net: i18n support for net adsKai Blin1-378/+389
2009-07-29s3 net: Initial top level support.Kai Blin2-153/+165
2009-07-29Fix unqualified "net join"Volker Lendecke1-4/+1
Kai, please check! Thanks, Volker
2009-07-28Added prefer_ipv4 bool parameter to resolve_name().Jeremy Allison4-8/+8
W2K3 DC's can have IPv6 addresses but won't serve krb5/ldap or cldap on those addresses. Make sure when we're asking for DC's we prefer IPv4. If you have an IPv6-only network this prioritizing code will be a no-op. And if you have a mixed network then you need to prioritize IPv4 due to W2K3 DC's. Jeremy.
2009-07-27s3: net ads user info should print primary group as well (bug #2658)Kai Blin1-15/+57
Thanks to Pavel V. Rochnyack <rpv@muma.tusur.ru> for reporting this and offering an initial patch.
2009-07-25Remove a pointless static fstringVolker Lendecke1-5/+3
2009-07-24Make the smbd VFS typesafeVolker Lendecke1-1/+0
2009-07-22Revert "net: Use samba default command line arguments."Kai Blin11-137/+209
This reverts commit fb262f79fab00374023e59476e8d05a1015a7041 and related commits c36031778e1983ddb11d3e1fcab35e738dbf94bc 72fd5fa6bb78a054fad5e5ebe19a0c0387a7d45b and 38cd0e086f50ce54d88a19aa5a6803469af90489 This change caused more trouble than it solved. We need to do this differently. Reverting so we don't accidently release this.
2009-07-18s3: Fix crsh in net usershare listBo Yang1-0/+1
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-15Make gencache more stableVolker Lendecke2-0/+25
This provides a compromise between stability and performance: gencache is a persistent database these days that for performance reasons can not use tdb transactions for all writes. This patch splits up gencache into gencache.tdb and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes to it don't use transactions. By default every 5 minutes and when a program exits, all entries from _notrans.tdb are transferred to gencache.tdb in one transaction.
2009-07-15Remove gencache_init/shutdownVolker Lendecke1-4/+0
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
2009-07-15s3: fix build of pdbedit and net_sam. Guenther, please check. Signed-off-by: ↵Bo Yang2-5/+5
Bo Yang <boyang@samba.org>
2009-07-15s3: Fix double free in net usershare.Bo Yang1-28/+4
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-13s3:net: Fix Bug #6222. Default to DRSUAPI replication for net rpc vampire keytabStefan Metzmacher1-4/+7
metze Signed-off-by: Günther Deschner <gd@samba.org>
2009-07-09Make escape_ldap_string take a talloc contextVolker Lendecke1-5/+5
2009-07-08s3: Change the share_mode_lock struct to store a base_name and stream_nameTim Prouty1-4/+14
2009-06-28Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke2-9/+9
2009-06-19Fix coverity #900. Resource leak.Jeremy Allison1-0/+5
Jeremy.
2009-06-19Fix coverity #920. Possible NULL deref.Jeremy Allison1-0/+4
Jeremy.
2009-06-19Don't require "Modify property" perms to unjoin bug #6481)Jim McDonough1-2/+9
"net ads leave" stopped working when "modify properties" permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete). Libnetapi should not delete machine accounts, as this does not happen on win32. The WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag really means "disable" (both in practice and docs). However, to keep the functionality in "net ads leave", we will still try to do the delete. If this fails, we try to do the disable. Additionally, it is possible in windows to not disable or delete the account, but just tell the local machine that it is no longer in the account. libnet can now do this as well.
2009-06-17s3-net: Fix Bug #6328: support "net sam rights grant/revoke" with multiple ↵David Markey1-18/+24
rights. David Signed-off-by: Günther Deschner <gd@samba.org>
2009-06-17s3-net: Fix Bug #6328: allow multiple rights in "net sam rights grant".Günther Deschner1-10/+14
Guenther
2009-06-09net: Only use the in memory ccache when not already using a kerberos ticket ↵Kai Blin1-1/+2
in net ads
2009-06-09s3-net: fix "net ads testjoin".Günther Deschner1-0/+1
This always needs to use machine account credentials. Kai, please check. Guenther
2009-06-09Make "net sam [add|del]mem" work for domain groupsVolker Lendecke1-0/+24
2009-06-09Implement "net sam deletedomaingroup"Volker Lendecke1-0/+53
2009-06-08Make "net ads listmem" also work for domain groupsVolker Lendecke1-14/+34
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke2-2/+4
2009-06-08Further fix for 6449Volker Lendecke1-1/+1
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
2009-06-08Fix a valgrind error in "net rap user add"Volker Lendecke1-0/+1
2009-06-08Fix bug 6449Volker Lendecke1-1/+1
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
2009-06-07Add "net sam createdomaingroup"Volker Lendecke1-0/+36
2009-06-05Fix a couple of warnings in log2pcaphex.cVolker Lendecke1-8/+12
2009-06-05Fix bug 6392: Exit log2pcaphex if a requested output file can't be openedVolker Lendecke1-0/+1
Thanks to Slava Semushin <php-coder@altlinux.org> for reporting!
2009-06-03Fix bug #2356 - smbclient -t <term code> no longer works.Jeremy Allison1-2/+0
Removed code and docs. Jeremy.
2009-05-30Make it possible to change machine account sidsSimo Sorce1-40/+171
Fixes bug #6081
2009-05-30Remove trailing whitespacesSimo Sorce1-20/+20
2009-05-29s3:pdbedit: fix "format not a string literal and no format arguments" warningsMichael Adam1-2/+2
Michael
2009-05-29Consolidate create/delete account paths in pdbeditSimo Sorce1-257/+319
Use common paths like for smbpasswd, so that all utilities behave the same way. As for smbpasswd this changes the behavior of pdbedit to create/delete unix users is the add/delete user scripts are provided, or ldapsam:editposix is configured. Signed-off-by: Günther Deschner <gd@samba.org>
2009-05-29Consolidate user create/delete paths in smbpasswdSimo Sorce1-27/+15
This patch changes the way smbpasswd behaves when adding/deleting users. smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if add/delete user scripts are configured then they are used to create or delete unix users as well. If the scripts are not defined the behavioris unchanged. This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow automatic creation/deletion of users. Signed-off-by: Günther Deschner <gd@samba.org>
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke3-11/+11
This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
2009-05-26s3:dbwrap_tool: add listkeys operationMichael Adam1-2/+45
Michael