smbpasswd_state   353 source3/passdb/pdb_smbpasswd.c static struct smb_passwd *getsmbfilepwent(struct smbpasswd_privates *smbpasswd_state, FILE *fp)
smbpasswd_state   356 source3/passdb/pdb_smbpasswd.c 	struct smb_passwd *pw_buf = &smbpasswd_state->pw_buf;
smbpasswd_state   357 source3/passdb/pdb_smbpasswd.c 	char  *user_name = smbpasswd_state->user_name;
smbpasswd_state   358 source3/passdb/pdb_smbpasswd.c 	unsigned char *smbpwd = smbpasswd_state->smbpwd;
smbpasswd_state   359 source3/passdb/pdb_smbpasswd.c 	unsigned char *smbntpwd = smbpasswd_state->smbntpwd;
smbpasswd_state   626 source3/passdb/pdb_smbpasswd.c static NTSTATUS add_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state,
smbpasswd_state   629 source3/passdb/pdb_smbpasswd.c 	const char *pfile = smbpasswd_state->smbpasswd_file;
smbpasswd_state   639 source3/passdb/pdb_smbpasswd.c 	fp = startsmbfilepwent(pfile, PWF_UPDATE, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   643 source3/passdb/pdb_smbpasswd.c 		fp = startsmbfilepwent(pfile, PWF_CREATE, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   655 source3/passdb/pdb_smbpasswd.c 	while ((pwd = getsmbfilepwent(smbpasswd_state, fp)) != NULL) {
smbpasswd_state   658 source3/passdb/pdb_smbpasswd.c 			endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   676 source3/passdb/pdb_smbpasswd.c 		endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   683 source3/passdb/pdb_smbpasswd.c 		endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   706 source3/passdb/pdb_smbpasswd.c 		endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   712 source3/passdb/pdb_smbpasswd.c 	endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   725 source3/passdb/pdb_smbpasswd.c static bool mod_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, const struct smb_passwd* pwd)
smbpasswd_state   740 source3/passdb/pdb_smbpasswd.c 	const char *pfile = smbpasswd_state->smbpasswd_file;
smbpasswd_state   767 source3/passdb/pdb_smbpasswd.c 	if (!pw_file_lock(lockfd, F_WRLCK, 5, &smbpasswd_state->pw_file_lock_depth)) {
smbpasswd_state   788 source3/passdb/pdb_smbpasswd.c 			pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   853 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   869 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   880 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   898 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   906 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   916 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   924 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state   956 source3/passdb/pdb_smbpasswd.c 			pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1017 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1035 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1043 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1050 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1057 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1064 source3/passdb/pdb_smbpasswd.c 		pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1069 source3/passdb/pdb_smbpasswd.c 	pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1078 source3/passdb/pdb_smbpasswd.c static bool del_smbfilepwd_entry(struct smbpasswd_privates *smbpasswd_state, const char *name)
smbpasswd_state  1080 source3/passdb/pdb_smbpasswd.c 	const char *pfile = smbpasswd_state->smbpasswd_file;
smbpasswd_state  1100 source3/passdb/pdb_smbpasswd.c 	if((fp = startsmbfilepwent(pfile, PWF_UPDATE, &smbpasswd_state->pw_file_lock_depth)) == NULL) {
smbpasswd_state  1110 source3/passdb/pdb_smbpasswd.c 		endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1118 source3/passdb/pdb_smbpasswd.c 	while ((pwd = getsmbfilepwent(smbpasswd_state, fp)) != NULL) {
smbpasswd_state  1136 source3/passdb/pdb_smbpasswd.c 			endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1147 source3/passdb/pdb_smbpasswd.c 			endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1162 source3/passdb/pdb_smbpasswd.c 		endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1175 source3/passdb/pdb_smbpasswd.c 	endsmbfilepwent(fp, &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1229 source3/passdb/pdb_smbpasswd.c static bool build_sam_account(struct smbpasswd_privates *smbpasswd_state, 
smbpasswd_state  1279 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_privates *smbpasswd_state = (struct smbpasswd_privates*)my_methods->private_data;
smbpasswd_state  1288 source3/passdb/pdb_smbpasswd.c 	fp = startsmbfilepwent(smbpasswd_state->smbpasswd_file, PWF_READ, &(smbpasswd_state->pw_file_lock_depth));
smbpasswd_state  1295 source3/passdb/pdb_smbpasswd.c 	while ( ((smb_pw=getsmbfilepwent(smbpasswd_state, fp)) != NULL)&& (!strequal(smb_pw->smb_name, username)) )
smbpasswd_state  1298 source3/passdb/pdb_smbpasswd.c 	endsmbfilepwent(fp, &(smbpasswd_state->pw_file_lock_depth));
smbpasswd_state  1313 source3/passdb/pdb_smbpasswd.c 	if (!build_sam_account(smbpasswd_state, sam_acct, smb_pw))
smbpasswd_state  1323 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_privates *smbpasswd_state = (struct smbpasswd_privates*)my_methods->private_data;
smbpasswd_state  1345 source3/passdb/pdb_smbpasswd.c 	fp = startsmbfilepwent(smbpasswd_state->smbpasswd_file, PWF_READ, &(smbpasswd_state->pw_file_lock_depth));
smbpasswd_state  1352 source3/passdb/pdb_smbpasswd.c 	while ( ((smb_pw=getsmbfilepwent(smbpasswd_state, fp)) != NULL) && (algorithmic_pdb_uid_to_user_rid(smb_pw->smb_userid) != rid) )
smbpasswd_state  1355 source3/passdb/pdb_smbpasswd.c 	endsmbfilepwent(fp, &(smbpasswd_state->pw_file_lock_depth));
smbpasswd_state  1370 source3/passdb/pdb_smbpasswd.c 	if (!build_sam_account (smbpasswd_state, sam_acct, smb_pw))
smbpasswd_state  1388 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_privates *smbpasswd_state = (struct smbpasswd_privates*)my_methods->private_data;
smbpasswd_state  1397 source3/passdb/pdb_smbpasswd.c 	return add_smbfilepwd_entry(smbpasswd_state, &smb_pw);
smbpasswd_state  1402 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_privates *smbpasswd_state = (struct smbpasswd_privates*)my_methods->private_data;
smbpasswd_state  1412 source3/passdb/pdb_smbpasswd.c 	if(!mod_smbfilepwd_entry(smbpasswd_state, &smb_pw)) {
smbpasswd_state  1422 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_privates *smbpasswd_state = (struct smbpasswd_privates*)my_methods->private_data;
smbpasswd_state  1426 source3/passdb/pdb_smbpasswd.c 	if (del_smbfilepwd_entry(smbpasswd_state, username))
smbpasswd_state  1589 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_privates *smbpasswd_state =
smbpasswd_state  1603 source3/passdb/pdb_smbpasswd.c 	fp = startsmbfilepwent(smbpasswd_state->smbpasswd_file, PWF_READ,
smbpasswd_state  1604 source3/passdb/pdb_smbpasswd.c 			       &smbpasswd_state->pw_file_lock_depth);
smbpasswd_state  1612 source3/passdb/pdb_smbpasswd.c 	while ((pwd = getsmbfilepwent(smbpasswd_state, fp)) != NULL) {
smbpasswd_state  1627 source3/passdb/pdb_smbpasswd.c 		if (!build_sam_account(smbpasswd_state, user, pwd)) {
smbpasswd_state  1657 source3/passdb/pdb_smbpasswd.c 	endsmbfilepwent(fp, &(smbpasswd_state->pw_file_lock_depth));