Lines Matching refs:jdi

590 	smb_joininfo_t jdi;  in smbadm_join_workgroup()  local
595 bzero(&jdi, sizeof (jdi)); in smbadm_join_workgroup()
596 jdi.mode = SMB_SECMODE_WORKGRP; in smbadm_join_workgroup()
597 (void) strlcpy(jdi.domain_name, workgroup, sizeof (jdi.domain_name)); in smbadm_join_workgroup()
598 (void) strtrim(jdi.domain_name, " \t\n"); in smbadm_join_workgroup()
600 if (smb_name_validate_workgroup(jdi.domain_name) != ERROR_SUCCESS) { in smbadm_join_workgroup()
605 if (confirm && !smbadm_join_confirm(jdi.domain_name)) in smbadm_join_workgroup()
609 if ((status = smb_join(&jdi, &jdres)) != NT_STATUS_SUCCESS) { in smbadm_join_workgroup()
611 jdi.domain_name, xlate_nt_status(status)); in smbadm_join_workgroup()
615 (void) printf(gettext("Successfully joined %s\n"), jdi.domain_name); in smbadm_join_workgroup()
634 smb_joininfo_t jdi; in smbadm_join_domain() local
641 bzero(&jdi, sizeof (jdi)); in smbadm_join_domain()
642 jdi.mode = SMB_SECMODE_DOMAIN; in smbadm_join_domain()
643 (void) strlcpy(jdi.domain_name, domain, sizeof (jdi.domain_name)); in smbadm_join_domain()
644 (void) strtrim(jdi.domain_name, " \t\n"); in smbadm_join_domain()
646 if (strlcpy(jdi.container_name, container, in smbadm_join_domain()
647 sizeof (jdi.container_name)) >= in smbadm_join_domain()
648 sizeof (jdi.container_name)) { in smbadm_join_domain()
655 if (smb_name_validate_domain(jdi.domain_name) != ERROR_SUCCESS) { in smbadm_join_domain()
660 if (confirm && !smbadm_join_confirm(jdi.domain_name)) in smbadm_join_domain()
681 if (len > sizeof (jdi.domain_name)) in smbadm_join_domain()
682 len = sizeof (jdi.domain_name); in smbadm_join_domain()
684 (void) strlcpy(jdi.domain_username, username, len); in smbadm_join_domain()
685 (void) strlcpy(jdi.domain_passwd, p, in smbadm_join_domain()
686 sizeof (jdi.domain_passwd)); in smbadm_join_domain()
688 (void) strlcpy(jdi.domain_username, username, in smbadm_join_domain()
689 sizeof (jdi.domain_username)); in smbadm_join_domain()
692 if (smb_name_validate_account(jdi.domain_username) in smbadm_join_domain()
699 if (*jdi.domain_passwd == '\0') { in smbadm_join_domain()
708 (void) strlcpy(jdi.domain_passwd, p, in smbadm_join_domain()
709 sizeof (jdi.domain_passwd)); in smbadm_join_domain()
726 (void) strlcpy(jdi.domain_passwd, pbuf, in smbadm_join_domain()
727 sizeof (jdi.domain_passwd)); in smbadm_join_domain()
732 jdi.domain_name); in smbadm_join_domain()
734 rc = smb_join(&jdi, &jdres); in smbadm_join_domain()
741 bzero(&jdi, sizeof (jdi)); in smbadm_join_domain()
749 jdi.domain_name, jdres.dc_name); in smbadm_join_domain()
750 bzero(&jdi, sizeof (jdi)); in smbadm_join_domain()
759 jdi.domain_name); in smbadm_join_domain()
789 jdi.domain_name); in smbadm_join_domain()
806 bzero(&jdi, sizeof (jdi)); in smbadm_join_domain()