/illumos-gate/usr/src/cmd/bnu/ |
H A D | in.uucpd.c | 69 struct passwd nouser = { 209 char user[64], passwd[64]; local 210 struct passwd *pw, *getpwnam(); 230 /* force a delay if passwd bad */ 311 sprintf(passwd, "-h%s", inet_ntoa(sinp->sin_addr)); 312 execl(UUCICO, "uucico", passwd, (char *)0); 426 struct passwd *pw; 521 static char passwd[64]; local 545 if (readline(passwd, sizeof (passwd)) < [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | auth.c | 134 /* Set if we got the contents of passwd[] from the pap-secrets file. */ 147 int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp, 155 int (*pap_passwd_hook) __P((char *user, char *passwd)) = NULL; 179 bool uselogin = 0; /* Use /etc/passwd for checking PAP */ 277 { "password", o_string, passwd, 332 || fgets(passwd, MAXSECRETLEN - 1, ufile) == NULL){ 342 l = strlen(passwd); 343 if (l > 0 && passwd[l-1] == '\n') 344 passwd[l-1] = '\0'; 592 if (passwd[ 1079 char passwd[256], user[256]; local [all...] |
H A D | options.c | 97 char passwd[MAXSECRETLEN]; /* Password for PAP */ variable 568 struct passwd *pw;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/ |
H A D | passprompt.c | 27 static int promptpass(char *user, char *passwd) argument 38 if (user != NULL && passwd == NULL) 84 red = read(p[0], passwd + readgood, MAXSECRETLEN-1 - readgood); 96 passwd[readgood] = 0; 109 if (readgood > 0 && passwd[--readgood] == '\n') 110 passwd[readgood] = '\0';
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | rtquery.c | 94 char passwd[RIP_AUTH_PW_LEN+1]; variable 250 if (0 == strcasecmp("passwd", optarg)) 257 passwd, sizeof (passwd))) 318 " [-a type=passwd] [host1 ...]\n"), 392 (void) memcpy(NA0.au.au_pw, passwd, RIP_AUTH_PW_LEN); 409 (uchar_t *)passwd, RIP_AUTH_MD5_LEN); 723 (uchar_t *)passwd, RIP_AUTH_MD5_LEN);
|
/illumos-gate/usr/src/cmd/fm/ipmitopo/common/ |
H A D | ipmitopo.c | 136 char c, *host = NULL, *user = NULL, *passwd = NULL; local 148 passwd = optarg; 171 (host == NULL || passwd == NULL || user == NULL)) { 181 nvlist_add_string(params, IPMI_LAN_PASSWD, passwd)) {
|
/illumos-gate/usr/src/cmd/idmap/idmap/ |
H A D | idmap.c | 221 char *passwd; member in struct:__anon650 309 "a:(authentication)D:(bindDN)j:(passwd-file)", 319 "a:(authentication)D:(bindDN)j:(passwd-file):", 604 if (namemaps.passwd != NULL) 605 (void) memset(namemaps.passwd, 0, strlen(namemaps.passwd)); 607 free_null(&namemaps.passwd); 621 init_nm_command(char *user, char *passwd, char *auth, char *windomain, argument 628 strcmp_null(passwd, namemaps.passwd) ! 3122 flags2cred(flag_t *f, char **user, char **passwd, cmd_pos_t *pos) argument 3220 char *passwd; local 3277 char *passwd; local [all...] |
H A D | namemaps.c | 140 strings2cred(ns_cred_t *nsc, char *user, char *passwd, char *auth) argument 154 if (passwd != NULL) { 155 nsc->cred.unix_cred.passwd = strdup(passwd); 156 if (nsc->cred.unix_cred.passwd == NULL) { 339 if (p->nsc.cred.unix_cred.passwd != NULL) { 341 (void) memset(p->nsc.cred.unix_cred.passwd, 0, 342 strlen(p->nsc.cred.unix_cred.passwd)); 343 free(p->nsc.cred.unix_cred.passwd); 356 char *user, char *passwd, cha 355 idmap_init_namemaps(idmap_nm_handle_t **adh, char *user, char *passwd, char *auth, char *windomain, int direction) argument [all...] |
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | chkey_common.c | 567 * otherwise "dn" and "passwd" would be used to bind as an individual 573 const char *passwd, 611 credp->cred.unix_cred.passwd = strdup(bindPasswd); 613 if (passwd) 614 credp->cred.unix_cred.passwd = strdup(passwd); 624 credp->cred.unix_cred.passwd = ldap_pw; 628 if (credp->cred.unix_cred.passwd == NULL) { 629 fprintf(stderr, "Memory allocation failure (passwd)\n"); 732 char *passwd) 571 update_ldap_attr(const char *dn, ns_ldap_attr_t **attrs, const char *passwd, int add, int update4host, const char *bindDN, const char *bindPasswd) argument 728 ldap_update(char *mechname, char *netname, char *public, char *crypt, char *passwd) argument [all...] |
H A D | keyserv.c | 552 char *passwd; local 571 passwd = getpass("root password:"); 572 passwd2des(passwd, master); 573 if (!getsecretkey(name, secret, passwd)) { 588 retval = storeotherrootkeys(fp, name, passwd, secret);
|
H A D | setkey.c | 574 storeotherrootkeys(FILE *fp, char *netname, char *passwd, char *osecret) argument 583 netname, passwd)); 584 passwd2des_g(passwd, netname, strlen(netname), &master, FALSE); 599 passwd)) {
|
/illumos-gate/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_services.c | 1548 char *passwd = NULL; local 1667 if ((errcode = generate_random_password(util_context, &passwd, &passwd_len))) { 1671 passwd_len = strlen(passwd); 1675 passwd = (char *)malloc(MAX_SERVICE_PASSWD_LEN + 1); 1676 if (passwd == NULL) { 1680 memset(passwd, 0, MAX_SERVICE_PASSWD_LEN + 1); 1701 retval = krb5_read_password(util_context, prompt1, prompt2, passwd, &passwd_len); 1706 memset(passwd, 0, MAX_SERVICE_PASSWD_LEN); 1711 memset(passwd, 0, MAX_SERVICE_PASSWD_LEN); 1714 passwd_len = strlen(passwd); 1929 char passwd[MAX_SERVICE_PASSWD_LEN]; local [all...] |
H A D | kdb5_ldap_util.c | 117 "kdb5_ldap_util [-D user_dn [-w passwd]] [-H ldapuri]\n" 306 char *passwd = NULL; local 386 passwd = strdup(koptarg); 387 if (passwd == NULL) { 515 if (passwd == NULL) { 516 passwd = (char *)malloc(MAX_PASSWD_LEN); 517 if (passwd == NULL) { 525 free(passwd); 526 passwd = NULL; 532 memset(passwd, [all...] |
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | common.c | 149 fprintf( stderr, gettext(" -w passwd\tbind passwd (for simple authentication)\n") ); 150 fprintf( stderr, gettext(" -w - \tprompt for bind passwd (for simple authentication)\n") ); 151 fprintf( stderr, gettext(" -j file\tread bind passwd (for simple authentication)\n") ); 214 static char *passwd = NULL; variable 603 passwd = strdup( optarg ); 759 passwd = NULL; 767 passwd = strdup(pbuf); 772 passwd = getpassphrase(password_string); 775 passwd 1441 ldaptool_simple_bind_s( LDAP *ld, const char *dn, const char *passwd, LDAPControl **serverctrls, LDAPControl **clientctrls, char *msg ) argument [all...] |
H A D | ldaptest.c | 223 static char dn[256], passwd[256]; local 243 getaline( passwd, sizeof(passwd), stdin, 246 passwd[0] = '\0'; 248 *passwdp = passwd; 262 char passwd[64], dn[256], rdn[64], attr[64], value[256]; local 446 getaline( passwd, sizeof(passwd), stdin, 449 passwd[0] = '\0'; 451 if ( ldap_bind( ld, dn, passwd, metho [all...] |
H A D | ldaptool-sasl.c | 33 char *passwd; member in struct:__anon728 42 char *passwd, char *realm ) 64 defaults->passwd = passwd; 111 defvalue = defaults->passwd; 126 /* Clear passwd */ 128 /* At this point defaults->passwd is not NULL */ 129 memset( defaults->passwd, '\0', strlen(defaults->passwd)); 41 ldaptool_set_sasl_defaults( LDAP *ld, char *mech, char *authid, char *username, char *passwd, char *realm ) argument
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_connect.c | 66 static void create_md5_digest(unsigned char *digest, char *passwd, 198 char *passwd, *dec_passwd; local 246 passwd = ndmpd_get_prop(NDMP_CLEARTEXT_PASSWORD); 247 if (!passwd || !*passwd) { 259 dec_passwd = ndmp_base64_decode(passwd); 290 passwd = ndmpd_get_prop(NDMP_CRAM_MD5_PASSWORD); 291 if (!passwd || !*passwd) { 302 dec_passwd = ndmp_base64_decode(passwd); 608 create_md5_digest(unsigned char *digest, char *passwd, unsigned char *challenge) argument 1165 char *passwd, *dec_passwd; local 1218 char *passwd, *dec_passwd; local [all...] |
/illumos-gate/usr/src/cmd/passwd/ |
H A D | Makefile | 26 PROG= passwd 27 DEFAULTFILES= passwd.dfl 31 passwd := LDLIBS += $(ROOT)/usr/lib/passwdutil.so.1 macro
|
H A D | passwd.c | 33 * passwd is a program whose sole purpose is to manage 73 #define MFLAG 0x004 /* set max field -- # of days passwd is valid */ 80 #define WFLAG 0x100 /* warn user to change passwd */ 145 #define MSG_SORRY "%s: Sorry, wrong passwd\n" 157 #define PASSWD "/etc/passwd" 277 struct passwd *pass = getpwuid(uid); 286 * If flag is zero, change passwd. 297 if (pam_start("passwd", usrname, &pam_conv, &pamh) != PAM_SUCCESS) { 1244 char *passwd; local 1251 passwd [all...] |
/illumos-gate/usr/src/cmd/print/lpset/ |
H A D | lpset.c | 54 struct passwd *pw; 89 "[-h ldaphost] [-D binddn] [-w passwd] " 111 *passwd = NULL, local 158 passwd = optarg; 215 if (passwd == NULL) { 216 passwd = getpassphrase(gettext("Bind Password:")); 227 cred->passwd = passwd;
|
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | DoPrinterNS.c | 46 const char *passwd, 62 const char *passwd, 81 const char *passwd; local 92 passwd = (*env)->GetStringUTFChars(env, jpasswd, 0); 96 ret = _dorexec(host, user, passwd, cmd, locale); 229 const char *passwd = NULL; local 250 passwd = (*env)->GetStringUTFChars(env, jpasswd, 0); 266 ret = _updateldap(action, host, binddn, passwd, printername,
|
H A D | DoPrinterNS.java | 38 String user, String passwd, String cmd, String locale); 43 String host, String binddn, String passwd, 135 String passwd = ns.getPasswd(); 174 ret = dorexec(nshost, user, passwd, cmd, locale); 183 ret = dorexec(nshost, user, passwd, cmd, locale); 255 ret = dorexec(nshost, user, passwd, cmd, locale); 285 ret = dorexec(nshost, user, passwd, cmd, locale); 302 ret = dorexec(nshost, user, passwd, cmd, locale); 318 ret = dorexec(nshost, user, passwd, cmd, locale); 338 ret = dorexec(nshost, user, passwd, cm 37 dorexec(String nshost, String user, String passwd, String cmd, String locale) argument 42 updateldap(String action, String host, String binddn, String passwd, String printername, String printserver, String extensions, String comment, String isdefault) argument [all...] |
H A D | NS.c | 57 const char *passwd = "directorymanager"; local 60 result = _updateldap("add", host, user, passwd, 66 result = _updateldap("delete", host, user, passwd, 72 result = _updateldap("delete", host, user, passwd, TPRINTERNAME, 78 result = _updateldap("delete", host, user, passwd, "_default", 84 result = _updateldap("add", host, user, passwd, TPRINTERNAME, 90 result = _updateldap("modify", host, user, passwd, TPRINTERNAME, 96 result = _updateldap("modify", host, user, passwd, TPRINTERNAME, 112 const char *passwd, 135 passwd, cm 109 _dorexec( const char *host, const char *user, const char *passwd, const char *cmd, const char *locale) argument 238 char *passwd; member in struct:ns_cred 445 _updateldap( const char *action, const char *host, const char *binddn, const char *passwd, const char *printername, const char *printserver, const char *extensions, const char *comment, const char *isdefault) argument [all...] |
H A D | NameService.java | 38 private String passwd = null; field in class:NameService 105 passwd = arg; 122 return (passwd);
|
H A D | PrinterUtil.java | 202 String passwd) throws Exception 204 DoPrinterNS.doCheckRootPasswd(passwd); 201 checkRootPasswd( String passwd) argument
|