pkgsrc/sysutils/smbldap-tools/patches/patch-ae
taca 55a29dc539 Importing smbldap-tools version 0.9.5. It has still experimental phase.
Smbldap-tools is a set of scripts designed to help integrate Samba and
a LDAP directory.  They target both users and administrators of unix
systems.

Users can change their password in a way similar to the standard
`passwd' command.

Administrators can perform user and group management command line
actions and synchronise Samba account management consistently.

A version of these tools are bundled with samba, but this set is from
the master development site and is generally more up to date.
2008-06-16 16:04:25 +00:00

40 lines
1.2 KiB
Text

$NetBSD: patch-ae,v 1.1.1.1 2008/06/16 16:04:25 taca Exp $
--- smbldap-populate.orig 2008-04-22 17:13:29.000000000 +0900
+++ smbldap-populate
@@ -214,7 +214,7 @@ uidNumber: $adminUidNumber\n";
$userHome=~s/\%U/$adminName/;
$entries.="homeDirectory: $userHome\n";
} else {
- $entries.="homeDirectory: /dev/null\n";
+ $entries.="homeDirectory: /nonexistent\n";
}
$entries.="sambaPwdLastSet: 0
sambaLogonTime: 0
@@ -240,7 +240,7 @@ sambaLMPassword: XXX
sambaNTPassword: XXX
sambaAcctFlags: [U ]
sambaSID: $config{SID}-$adminrid
-loginShell: /bin/false
+loginShell: /sbin/nologin
gecos: Netbios Domain Administrator
dn: uid=$guestName,$config{usersdn}
@@ -256,7 +256,7 @@ objectClass: shadowAccount
gidNumber: 514
uid: $guestName
uidNumber: $guestUidNumber
-homeDirectory: /dev/null
+homeDirectory: /nonexistent
sambaPwdLastSet: 0
sambaLogonTime: 0
sambaLogoffTime: 2147483647
@@ -282,7 +282,7 @@ sambaNTPassword: NO PASSWORDXXXXXXXXXXXX
# account disabled by default
sambaAcctFlags: [NUD ]
sambaSID: $config{SID}-2998
-loginShell: /bin/false
+loginShell: /sbin/nologin
dn: cn=Domain Admins,$config{groupsdn}
objectClass: top