summaryrefslogtreecommitdiff
path: root/source3/sam/get_set_domain.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-08-28 05:55:08 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-08-28 05:55:08 +0000
commitbbbf21310f809bd948202840d27c34b6bebe94e3 (patch)
treea3c0864339e370cd1ec293c60764bd9340662f0d /source3/sam/get_set_domain.c
parent2b2b0f7119fe043f61259579ce70e782f5f9ec5f (diff)
downloadsamba-bbbf21310f809bd948202840d27c34b6bebe94e3.tar.gz
samba-bbbf21310f809bd948202840d27c34b6bebe94e3.tar.bz2
samba-bbbf21310f809bd948202840d27c34b6bebe94e3.zip
Code style + typo fixes
Added Kai Krüger to copyrightholders of interface.c (This used to be commit 067ae5f81076611a0042eb064afdffa5e37f93e9)
Diffstat (limited to 'source3/sam/get_set_domain.c')
-rw-r--r--source3/sam/get_set_domain.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/source3/sam/get_set_domain.c b/source3/sam/get_set_domain.c
index 49a63f9fae..e9e61119cd 100644
--- a/source3/sam/get_set_domain.c
+++ b/source3/sam/get_set_domain.c
@@ -37,7 +37,7 @@ NTSTATUS sam_get_domain_sid(SAM_DOMAIN_HANDLE *domain, DOM_SID **sid)
NTSTATUS sam_get_domain_num_users(SAM_DOMAIN_HANDLE *domain, uint32 *num_users)
{
- if (!domain || !num_users)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !num_users) return NT_STATUS_UNSUCCESSFUL;
*num_users = domain->private.num_users;
@@ -46,7 +46,7 @@ NTSTATUS sam_get_domain_num_users(SAM_DOMAIN_HANDLE *domain, uint32 *num_users)
NTSTATUS sam_get_domain_num_groups(SAM_DOMAIN_HANDLE *domain, uint32 *num_groups)
{
- if (!domain || !num_groups)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !num_groups) return NT_STATUS_UNSUCCESSFUL;
*num_groups = domain->private.num_groups;
@@ -55,7 +55,7 @@ NTSTATUS sam_get_domain_num_groups(SAM_DOMAIN_HANDLE *domain, uint32 *num_groups
NTSTATUS sam_get_domain_num_aliases(SAM_DOMAIN_HANDLE *domain, uint32 *num_aliases)
{
- if (!domain || !num_aliases)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !num_aliases) return NT_STATUS_UNSUCCESSFUL;
*num_aliases = domain->private.num_aliases;
@@ -64,7 +64,7 @@ NTSTATUS sam_get_domain_num_aliases(SAM_DOMAIN_HANDLE *domain, uint32 *num_alias
NTSTATUS sam_get_domain_name(SAM_DOMAIN_HANDLE *domain, char **domain_name)
{
- if (!domain || !domain_name)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !domain_name) return NT_STATUS_UNSUCCESSFUL;
*domain_name = domain->private.name;
@@ -73,7 +73,7 @@ NTSTATUS sam_get_domain_name(SAM_DOMAIN_HANDLE *domain, char **domain_name)
NTSTATUS sam_set_domain_name(SAM_DOMAIN_HANDLE *domain, char *domain_name)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.name = talloc_strdup(domain->mem_ctx, domain_name);
@@ -82,7 +82,7 @@ NTSTATUS sam_set_domain_name(SAM_DOMAIN_HANDLE *domain, char *domain_name)
NTSTATUS sam_get_domain_server(SAM_DOMAIN_HANDLE *domain, char **server_name)
{
- if (!domain || !server_name)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !server_name) return NT_STATUS_UNSUCCESSFUL;
*server_name = domain->private.servername;
@@ -91,7 +91,7 @@ NTSTATUS sam_get_domain_server(SAM_DOMAIN_HANDLE *domain, char **server_name)
NTSTATUS sam_set_domain_server(SAM_DOMAIN_HANDLE *domain, char *server_name)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.servername = talloc_strdup(domain->mem_ctx, server_name);
@@ -100,7 +100,7 @@ NTSTATUS sam_set_domain_server(SAM_DOMAIN_HANDLE *domain, char *server_name)
NTSTATUS sam_get_domain_max_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME *max_passwordage)
{
- if (!domain || !max_passwordage)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !max_passwordage) return NT_STATUS_UNSUCCESSFUL;
*max_passwordage = domain->private.max_passwordage;
@@ -109,7 +109,7 @@ NTSTATUS sam_get_domain_max_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME *max_passwo
NTSTATUS sam_get_domain_min_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME *min_passwordage)
{
- if (!domain || !min_passwordage)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !min_passwordage) return NT_STATUS_UNSUCCESSFUL;
*min_passwordage = domain->private.min_passwordage;
@@ -118,7 +118,7 @@ NTSTATUS sam_get_domain_min_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME *min_passwo
NTSTATUS sam_get_domain_lockout_duration(SAM_DOMAIN_HANDLE *domain, NTTIME *lockout_duration)
{
- if (!domain || !lockout_duration)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !lockout_duration) return NT_STATUS_UNSUCCESSFUL;
*lockout_duration = domain->private.lockout_duration;
@@ -127,7 +127,7 @@ NTSTATUS sam_get_domain_lockout_duration(SAM_DOMAIN_HANDLE *domain, NTTIME *lock
NTSTATUS sam_get_domain_reset_count(SAM_DOMAIN_HANDLE *domain, NTTIME *reset_lockout_count)
{
- if (!domain || !reset_lockout_count)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !reset_lockout_count) return NT_STATUS_UNSUCCESSFUL;
*reset_lockout_count = domain->private.reset_count;
@@ -136,7 +136,7 @@ NTSTATUS sam_get_domain_reset_count(SAM_DOMAIN_HANDLE *domain, NTTIME *reset_loc
NTSTATUS sam_get_domain_min_pwdlength(SAM_DOMAIN_HANDLE *domain, uint16 *min_passwordlength)
{
- if (!domain || !min_passwordlength)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !min_passwordlength) return NT_STATUS_UNSUCCESSFUL;
*min_passwordlength = domain->private.min_passwordlength;
@@ -145,7 +145,7 @@ NTSTATUS sam_get_domain_min_pwdlength(SAM_DOMAIN_HANDLE *domain, uint16 *min_pas
NTSTATUS sam_get_domain_pwd_history(SAM_DOMAIN_HANDLE *domain, uint16 *password_history)
{
- if (!domain || !password_history)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !password_history) return NT_STATUS_UNSUCCESSFUL;
*password_history = domain->private.password_history;
@@ -154,7 +154,7 @@ NTSTATUS sam_get_domain_pwd_history(SAM_DOMAIN_HANDLE *domain, uint16 *password_
NTSTATUS sam_get_domain_lockout_count(SAM_DOMAIN_HANDLE *domain, uint16 *lockout_count)
{
- if (!domain || !lockout_count)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !lockout_count) return NT_STATUS_UNSUCCESSFUL;
*lockout_count = domain->private.lockout_count;
@@ -163,7 +163,7 @@ NTSTATUS sam_get_domain_lockout_count(SAM_DOMAIN_HANDLE *domain, uint16 *lockout
NTSTATUS sam_get_domain_force_logoff(SAM_DOMAIN_HANDLE *domain, BOOL *force_logoff)
{
- if (!domain || !force_logoff)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !force_logoff) return NT_STATUS_UNSUCCESSFUL;
*force_logoff = domain->private.force_logoff;
@@ -173,7 +173,7 @@ NTSTATUS sam_get_domain_force_logoff(SAM_DOMAIN_HANDLE *domain, BOOL *force_logo
NTSTATUS sam_get_domain_login_pwdchange(SAM_DOMAIN_HANDLE *domain, BOOL *login_pwdchange)
{
- if (!domain || !login_pwdchange)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain || !login_pwdchange) return NT_STATUS_UNSUCCESSFUL;
*login_pwdchange = domain->private.login_pwdchange;
@@ -184,7 +184,7 @@ NTSTATUS sam_get_domain_login_pwdchange(SAM_DOMAIN_HANDLE *domain, BOOL *login_p
NTSTATUS sam_set_domain_max_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME max_passwordage)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.max_passwordage = max_passwordage;
@@ -193,7 +193,7 @@ NTSTATUS sam_set_domain_max_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME max_passwor
NTSTATUS sam_set_domain_min_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME min_passwordage)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.min_passwordage = min_passwordage;
@@ -202,7 +202,7 @@ NTSTATUS sam_set_domain_min_pwdage(SAM_DOMAIN_HANDLE *domain, NTTIME min_passwor
NTSTATUS sam_set_domain_lockout_duration(SAM_DOMAIN_HANDLE *domain, NTTIME lockout_duration)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.lockout_duration = lockout_duration;
@@ -210,7 +210,7 @@ NTSTATUS sam_set_domain_lockout_duration(SAM_DOMAIN_HANDLE *domain, NTTIME locko
}
NTSTATUS sam_set_domain_reset_count(SAM_DOMAIN_HANDLE *domain, NTTIME reset_lockout_count)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.reset_count = reset_lockout_count;
@@ -219,7 +219,7 @@ NTSTATUS sam_set_domain_reset_count(SAM_DOMAIN_HANDLE *domain, NTTIME reset_lock
NTSTATUS sam_set_domain_min_pwdlength(SAM_DOMAIN_HANDLE *domain, uint16 min_passwordlength)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.min_passwordlength = min_passwordlength;
@@ -237,7 +237,7 @@ NTSTATUS sam_set_domain_pwd_history(SAM_DOMAIN_HANDLE *domain, uint16 password_h
NTSTATUS sam_set_domain_lockout_count(SAM_DOMAIN_HANDLE *domain, uint16 lockout_count)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.lockout_count = lockout_count;
@@ -246,7 +246,7 @@ NTSTATUS sam_set_domain_lockout_count(SAM_DOMAIN_HANDLE *domain, uint16 lockout_
NTSTATUS sam_set_domain_force_logoff(SAM_DOMAIN_HANDLE *domain, BOOL force_logoff)
{
- if (!domain)return NT_STATUS_UNSUCCESSFUL;
+ if (!domain) return NT_STATUS_UNSUCCESSFUL;
domain->private.force_logoff = force_logoff;