From owner-freebsd-questions@freebsd.org Fri Jun 16 13:16:56 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 089C3C0871F for ; Fri, 16 Jun 2017 13:16:56 +0000 (UTC) (envelope-from friedrich.locke@gmail.com) Received: from mail-qt0-x22f.google.com (mail-qt0-x22f.google.com [IPv6:2607:f8b0:400d:c0d::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD90F7E94D for ; Fri, 16 Jun 2017 13:16:55 +0000 (UTC) (envelope-from friedrich.locke@gmail.com) Received: by mail-qt0-x22f.google.com with SMTP id u19so62663647qta.3 for ; Fri, 16 Jun 2017 06:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=1Ig3Tw2R9b9C4XoG+o7SjrugA0v9oa3wO08gREvRZdU=; b=KEW+5qrGx5Fjjh1FD8ObSlVyMp99VF3PtOIVfj4k+MnKTTXk8okRSgsh0Pyku2VcVk nvjeo6HQi6IeWStxdB5g7pqj5qs0EH2tbOYHPAbTYiQIiZLPolOBS30Nwf7X4aOjyFnE EhpazUyujyFnMAPBREc0wb/eiteAGuFParNB9hUwt9eVtkPYg1fZyyiiL9rJu63Of/I8 y7w+cMonlYbmmignHLoj3x5rps7KXls0f5NGxgQjJNCkZBTuCPqtMNN3rAidS8T83qlW wzSbgV5W187W7yeo0QgRdvjvY+zlq4IH5QJCY15mrgCORv6pqgSiTIodQQh7EELMvzig YVxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=1Ig3Tw2R9b9C4XoG+o7SjrugA0v9oa3wO08gREvRZdU=; b=nfa0y1iQARrzC42J9m+SX8VmCkj5kYzoWdIT5N5C4aaB3bs0arfjXjs7eATlHO9SMb 1NPu7tDk+228/ugHW+pHk5u9kV0Jjyb0OoB40/J/k/5r+ZzBQUawgIZ3bBIhKCanAOv0 +Uc1IUMgcfpSFxZDAXfDGix3/WWBi/GojwCDSP4HbBHB3kv5+2DQIJHiSmpHle9k6YGF a3aMoIjXEae/ITtblDO3hBdklQ60rRj5SfyENjQGl+WDCrU3nr9mjrGCqLIiwLE253IS 3/c5aXndHiSOMjmBRSpLQDCJbDe4JFMMoMYuojHbVCpHpQakW0W8Zln38acJyJMr3twy Zv0w== X-Gm-Message-State: AKS2vOzwhnyAGUDKz/AD9/c8n6HLwP5d4KcZ5FF0nHXC61pDLFrX5P7k KFgl0pE56VG73ce3 X-Received: by 10.237.55.164 with SMTP id j33mr12105042qtb.86.1497619014719; Fri, 16 Jun 2017 06:16:54 -0700 (PDT) Received: from [192.168.0.103] (177-177-88-34.user.veloxzone.com.br. [177.177.88.34]) by smtp.gmail.com with ESMTPSA id c143sm1448837qkg.64.2017.06.16.06.16.52 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 06:16:54 -0700 (PDT) Message-ID: <5943DA42.9010706@gmail.com> Date: Fri, 16 Jun 2017 10:16:50 -0300 From: Friedrich Locke User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org, openldap-software@openldap.org Subject: hard times getting ldap to work with sasl Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 13:16:56 -0000 Hi folks, after trying to get openldap + sasl working for 3 day i have loose my hairs. My dns is working ok, openldap config too. But i am not able to get opendalp to auth via sasl kerberos or GSSAPI. When i try to auth via sasl or providing plain text password nothing is even show in saslauthd log files. It seems openldap does not even contact saslauthd. Here is some examples : sioux@etosha$ ldapsearch -Y GSSAPI -b "" -s base -LLL supportedSASLMechanisms SASL/GSSAPI authentication started ldap_sasl_interactive_bind_s: Other (e.g., implementation specific) error (80) additional info: SASL(-1): generic failure: GSSAPI Error: No credentials were supplied, or the credentials were unavailable or inaccessible. (unknown mech-code 0 for mech unknown) sioux@etosha$ uname -a FreeBSD etosha 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 06:12:04 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 sioux@etosha$ klist Credentials cache: FILE:/tmp/krb5cc_Ofd7Gy Principal: sioux@MY.DOMAIN Issued Expires Principal Jun 16 12:16:28 2017 Jun 16 16:16:28 2017 krbtgt/MY.DOMAIN@MY.DOMAIN Jun 16 12:16:54 2017 Jun 16 16:16:28 2017 host/etosha.my.domain@MY.DOMAIN Jun 16 12:40:03 2017 Jun 16 16:16:28 2017 ldap/etosha.my.domain@MY.DOMAIN sioux@etosha$ The credentials are fetched from kerberos, by ldapsearch is prevented from log into slapd. And when i provide a user, saslauthd is not even contacted. Please, someone help me ......