Lines Matching defs:cn
1448 ns_conn_mt_t *cn;
1488 for (cn = cmg->cm_head; cn; cn = cn->next) {
1489 (void) mutex_lock(&cn->lock);
1490 rc = match_conn_mt(cu, &cn, st, server, cred);
1491 if (rc == B_FALSE && cn != NULL) /* not found */
1493 if (cn == NULL) { /* not found and cn freed */
1496 * be different due to cn's
1506 if (cn->state == NS_CONN_MT_CONNECTED) {
1507 *session = cn->conn;
1508 add_cu2cm(cu, cn);
1509 cu->conn_mt = cn;
1511 (void) mutex_unlock(&cn->lock);
1517 * if cn is not connecting, or allow only
1520 if (cn->state != NS_CONN_MT_CONNECTING ||
1521 cn->cu_max == 1) {
1522 (void) mutex_unlock(&cn->lock);
1527 if (wait_for_conn_mt(cu, cn) != 1) {
1538 if (cn->ns_rc != NS_LDAP_NOTFOUND)
1544 (void) mutex_unlock(&cn->lock);
1548 return (cn->ns_rc);
1552 *session = cn->conn;
1554 (void) mutex_unlock(&cn->lock);
1567 cn = init_conn_mt(cmg, server, cred, errorp);
1568 if (cn == NULL) {
1572 cu->conn_mt = cn;
1573 cn->opened_for = cu->type;
1574 cn->referral = cu->referral;
1576 cn->cu_max = NS_CONN_MT_USER_MAX;
1578 cn->cu_max = 1;
1579 add_cm2cmg(cn, cmg);