summaryrefslogtreecommitdiffstats
path: root/pw/pw.h
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-01-05 07:15:37 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-01-05 07:15:37 +0000
commit0dbd2e2a64e789d9d91880a6e9b5322c54384ac0 (patch)
treeb6f86a2dbce41d81b9eb93c5d2d8553354a1bc88 /pw/pw.h
parent4b81d2e23e348ec59138bc968f40b6d2fb3d91ac (diff)
downloadpw-darwin-0dbd2e2a64e789d9d91880a6e9b5322c54384ac0.tar.gz
pw-darwin-0dbd2e2a64e789d9d91880a6e9b5322c54384ac0.tar.zst
pw-darwin-0dbd2e2a64e789d9d91880a6e9b5322c54384ac0.zip
Adds optional NIS passwd file updating and optionally rebuilding
NIS maps. Suggested by: Peter Wemm
Diffstat (limited to 'pw/pw.h')
-rw-r--r--pw/pw.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pw/pw.h b/pw/pw.h
index 7c8cff5..37c4807 100644
--- a/pw/pw.h
+++ b/pw/pw.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pw.h,v 1.2 1996/12/19 15:22:42 davidn Exp $
+ * $Id: pw.h,v 1.3 1996/12/21 15:35:42 davidn Exp $
*/
#include <stdio.h>
@@ -72,6 +72,7 @@ struct userconf
int default_password; /* Default password for new users? */
int reuse_uids; /* Reuse uids? */
int reuse_gids; /* Reuse gids? */
+ char *nispasswd; /* Path to NIS version of the passwd file */
char *dotdir; /* Where to obtain skeleton files */
char *newmail; /* Mail to send to new accounts */
char *logfile; /* Where to log changes */
@@ -108,6 +109,10 @@ int delpwent(struct passwd * pwd);
int chgpwent(char const * login, struct passwd * pwd);
int fmtpwent(char *buf, struct passwd * pwd);
+int addnispwent(const char *path, struct passwd *pwd);
+int delnispwent(const char *path, const char *login);
+int chgnispwent(const char *path, const char *login, struct passwd *pwd);
+
int addgrent(struct group * grp);
int delgrent(struct group * grp);
int chggrent(char const * login, struct group * grp);