Displaying 20 results from an estimated 64 matches for "ldap_priv".
2020 Jul 15
2
Interacting with LDAP db without password as root
How could I avoid being asked a password when interacting with /var/lib/samba/private/ldap_priv/ldapi through ldapsearch or ldaputils in general?
(ldapsearch -H ldapi//%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldapi)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Firma digitale OpenPGP
URL: <htt...
2011 Feb 06
0
bind9 dlopen/dlz problems
...bind
config:
dlz "Samba zone" {
database "dlopen /usr/lib/libdlz_bind9.so";
}
And that's about as far as I get. During bind startup I only get this
error message:
Loading 'Samba zone' using driver dlopen
Unable to get basedn for
ldapi:///var/lib/samba4/private/ldap_priv/ldapi - (null)
dlz_dlopen of 'Samba zone' failed
SDLZ driver failed to load.
DLZ driver failed to load.
loading configuration: failure
exiting (due to fatal error)
So I tried ldapi access using ldapsearch:
> ldapsearch -U Administrator -H
ldapi:///var/lib/samba4/private/ldap_priv/ldapi...
2011 Feb 07
2
bind9 dlopen/dlz problems [update]
...n "standard ldb modules
path"). Just setting LDB_MODULES_PATH to the directory containing
it makes named start:
export LDB_MODULES_PATH=/usr/lib/samba/ldb/
named -u named
-> startup complete
So it wasn't my first suspect "ldap uri":
ldapi:///var/lib/samba4/private/ldap_priv/ldapi
ldapi://%2Fvar%2Flib%2Fsamba4%2Fprivate%2Fldap_priv%2Fldapi
This leaves me with the task to finally get some DNS entries into the
samba database :-)
Bye,
Marcel
2020 Jul 15
2
Interacting with LDAP db without password as root
Wed, 15 Jul 2020 13:56:48 +0100 Rowland penny via samba <samba at lists.samba.org>:
> On 15/07/2020 13:36, RhineDevil via samba wrote:
> > How could I avoid being asked a password when interacting with /var/lib/samba/private/ldap_priv/ldapi through ldapsearch or ldaputils in general?
> > (ldapsearch -H ldapi//%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldapi)
>
> Don't use ldap-utils, use ldb-tools and the machine password:
>
> sudo ldbsearch -P -H ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldap
>
> Rowland
&q...
2020 Jul 15
2
Interacting with LDAP db without password as root
...07/2020 14:56, RhineDevil wrote:
> > Wed, 15 Jul 2020 13:56:48 +0100 Rowland penny via samba <samba at lists.samba.org>:
> >> On 15/07/2020 13:36, RhineDevil via samba wrote:
> >>> How could I avoid being asked a password when interacting with /var/lib/samba/private/ldap_priv/ldapi through ldapsearch or ldaputils in general?
> >>> (ldapsearch -H ldapi//%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldapi)
> >> Don't use ldap-utils, use ldb-tools and the machine password:
> >>
> >> sudo ldbsearch -P -H ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2...
2020 Jul 15
2
Interacting with LDAP db without password as root
...l wrote:
> >>> Wed, 15 Jul 2020 13:56:48 +0100 Rowland penny via samba <samba at lists.samba.org>:
> >>>> On 15/07/2020 13:36, RhineDevil via samba wrote:
> >>>>> How could I avoid being asked a password when interacting with /var/lib/samba/private/ldap_priv/ldapi through ldapsearch or ldaputils in general?
> >>>>> (ldapsearch -H ldapi//%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldapi)
> >>>> Don't use ldap-utils, use ldb-tools and the machine password:
> >>>>
> >>>> sudo ldbsearch -P -H ldapi://...
2015 Feb 02
2
Searching samba ldap without authentication
...thout authentication.
I've set up 2 machines, the first as PDC, the second as BDC.
I run my scripts on both and while they run fine on the PDC they end
with error on the BDC.
Here is the minimal example that behave this way:
import ldap
LDAP_URI = "ldapi://%2fvar%2flib%2fsamba%2fprivate%2fldap_priv%2fldapi"
l = ldap.initialize(LDAP_URI, trace_level=1)
entries = l.search_s('dc=mon,dc=dom', ldap.SCOPE_SUBTREE)
print(entries)
it ends with: ldap.OPERATIONS_ERROR: {'info': '00002020: Operation
unavailable without authentication', 'desc': 'Operations error...
2020 Jul 18
2
Adding users with ldif file
...os domain name (aka
>>>> workgroup) then you can find this with wbinfo:
>>>>
>>>> wbinfo --own-domain
>>>>
>>>> Rowland
>>>>
>>> I tried to add ypServ30 using ldapi socket "ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldap_priv%2Fldapi, it said
>>>
>>> `ERR: insufficient access rights : "LDAP error 50 LDAP_INSUFFICIENT_ACCESS_RIGHTS <acl: unable to get access to CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=mytld> <>" on DN CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=m...
2020 Jul 18
2
Adding users with ldif file
...then you can find this with wbinfo:
>>>>>>
>>>>>> wbinfo --own-domain
>>>>>>
>>>>>> Rowland
>>>>>>
>>>>> I tried to add ypServ30 using ldapi socket "ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldap_priv%2Fldapi, it said
>>>>>
>>>>> `ERR: insufficient access rights : "LDAP error 50 LDAP_INSUFFICIENT_ACCESS_RIGHTS <acl: unable to get access to CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=mytld> <>" on DN CN=ypServ30,CN=RpcServices,CN=System,...
2020 Jul 18
2
Adding users with ldif file
...>>>>>
>>>>>>>> wbinfo --own-domain
>>>>>>>>
>>>>>>>> Rowland
>>>>>>>>
>>>>>>> I tried to add ypServ30 using ldapi socket "ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldap_priv%2Fldapi, it said
>>>>>>>
>>>>>>> `ERR: insufficient access rights : "LDAP error 50 LDAP_INSUFFICIENT_ACCESS_RIGHTS <acl: unable to get access to CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=mytld> <>" on DN CN=ypServ30,CN=RpcSer...
2013 Oct 29
1
samba_backup
...7: socket ignored
tar: ./private/smbd.tmp/msg/msg.3240.83: socket ignored
tar: ./private/smbd.tmp/msg/msg.28325.1: socket ignored
tar: ./private/smbd.tmp/msg/msg.3248.61: socket ignored
tar: ./private/smbd.tmp/msg/msg.3248.65: socket ignored
tar: ./private/ldapi: socket ignored
tar: ./private/ldap_priv/ldapi: socket ignored
tar: ./private: file changed as we read it
Error while archiving /usr/local/backups/samba4_private.291013.tar.bz2
Best regards
Stefan J?ckel IT und Systemadministration
Martin-Luther-Universit?t Halle Wittenberg
Juristische und Wirtschaftswissenschaftliche Fakul...
2019 Jul 23
2
errors restoring samba
> Jul 22 14:39:39 dc1 named[27846]: samba_dlz: Failed to connect to
> /var/lib/samba/private/dns/sam.ldb
The good news is I believe I've found the problem:
RUNNING:
# file: samba/private
# owner: root
# group: root
user::rwx
group::r-x
group:bind:r-x
mask::r-x
other::---
RESTORE:
# file: samba/private
# owner: root
# group: root
user::rwx
group::r-x
other::---
The bad news is
2025 May 01
1
How to determine Samba Installation directory
...ignd/
private/
registry.tdb
registry.tdb.bak
share_info.tdb
share_info.tdb.bak
sysvol/
winbindd_cache.tdb
winbindd_cache.tdb.bak
winbindd_privileged/
and /var/lib/samba/private:
dns_update_cache
dns_update_list
encrypted_secrets.key
hklm.ldb
hklm.ldb.bak
idmap.ldb
idmap.ldb.bak
kdc.conf
krb5.conf
ldap_priv/
ldapi=
msg.sock/
netlogon_creds_cli.tdb
privilege.ldb
privilege.ldb.bak
sam.ldb
sam.ldb.bak
sam.ldb.d/
schannel_store.tdb
schannel_store.tdb.bak
secrets.keytab
secrets.ldb
secrets.ldb.bak
secrets.tdb
secrets.tdb.bak
share.ldb
share.ldb.bak
smbd.tmp/
spn_update_list
smb.conf is in /etc/samba
samb...
2015 Feb 02
2
Searching samba ldap without authentication
...first as PDC, the second as BDC.
>> I run my scripts on both and while they run fine on the PDC they end
>> with error on the BDC.
>> Here is the minimal example that behave this way:
>>
>> import ldap
>> LDAP_URI = "ldapi://%2fvar%2flib%2fsamba%2fprivate%2fldap_priv%2fldapi"
>>
>> l = ldap.initialize(LDAP_URI, trace_level=1)
>> entries = l.search_s('dc=mon,dc=dom', ldap.SCOPE_SUBTREE)
>> print(entries)
>>
>> it ends with: ldap.OPERATIONS_ERROR: {'info': '00002020: Operation
>> unavailable witho...
2019 Oct 04
2
samba-tool user syncpasswords crashes with python3
...29:47 2019: pid[985]: Using
cache_ldb[/usr/local/samba/private/user-syncpasswords-cache.ldb]
Fri Oct 4 12:29:47 2019: pid[985]: currentPid: 985
Fri Oct 4 12:29:47 2019: pid[985]: Wait before connect - sleep(1)
Fri Oct 4 12:29:48 2019: pid[985]: Connecting to
'ldapi:///usr/local/samba/private/ldap_priv/ldapi'
Fri Oct 4 12:29:48 2019: pid[985]: Resuming monitoring
dirsyncFilter:
(&(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=512)(!(
sAMAccountName=krbtgt*)))
dirsyncControls: ['dirsync:1:0:0', 'extended_dn:1:0']
syncCommand: /usr/local/bin/syncpw.py
Fri Oct...
2015 Aug 27
2
Samba Internal DNS vs. BIND_DLZ
On 08/27/2015 04:37 PM, Rowland Penny wrote:
> On 27/08/15 21:23, Robert Moskowitz wrote:
>>
>>
>> On 08/27/2015 04:18 PM, Marc Muehlfeld wrote:
>>> Hello Jim,
>>>
>>> Am 27.08.2015 um 21:49 schrieb Jim Seymour:
>>>> BIND would be the auth nameserver for example.com and delegate
>>>> the samdom.example.com zone to
2020 Jul 06
0
dns_tkey_gssnegotiate: TKEY is unacceptable
...tions
tkey-gssapi-keytab "/var/lib/samba/*bind-dns*/dns.keytab";
root at DC1:~# ls /var/lib/samba/bind-dns/
dns named.conf named.txt/*<<<<<<<<<<<<<<< notice dns.keytab is MISSING*/
root at DC1:~# ls /var/lib/samba/private/
*dns.keytab* hklm.ldb ldap_priv . . . . more files
root at DC1:~# cat /etc/krb5.conf
[libdefaults]
default_realm = SUBDOM.EXAMPLE.COM
>>>>>>>>>>>>>>>> snipped for brevity <<<<<<<<<<<<<<<<
[realms]
SUBDOM.EXAMPLE.COM = {
kdc = DC01
kdc...
2015 Aug 27
4
Samba Internal DNS vs. BIND_DLZ
...>> Empty dir.
>
> OK, how did you provision samba4 as a DC ?
> I believe that /var/lib/samba/private is empty until the domain is
> provisioned, at which point it should look like this:
>
> dns ldapi randseed.tdb share.ldb
> dns.keytab ldap_priv sam.ldb smbd.tmp
> dns_update_cache named.conf sam.ldb.d spn_update_list
> dns_update_list named.conf.update schannel_store.tdb tls
> hklm.ldb named.txt secrets.keytab
> idmap.ldb netlogon_creds_cli.tdb secrets.ldb
> krb5.conf...
2016 Jul 12
1
Testing a forest trusts in Samba 4.4.5 AD environment
Database size would interest us here, with and without trust if you have
these metrics. Global catalog is supposed to stored some attributes of
almost all objects of all trusted domains, if me understanding is correct
and we have no real idea about what that means in concrete terms.
2016-07-12 12:55 GMT+02:00 Alex Crow <acrow at integrafin.co.uk>:
> On 12/07/16 09:36, mathias dufresne
2020 Jul 18
1
Adding users with ldif file
...;>>>>> wbinfo --own-domain
>>>>>>>>>>
>>>>>>>>>> Rowland
>>>>>>>>>>
>>>>>>>>> I tried to add ypServ30 using ldapi socket "ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldap_priv%2Fldapi, it said
>>>>>>>>>
>>>>>>>>> `ERR: insufficient access rights : "LDAP error 50 LDAP_INSUFFICIENT_ACCESS_RIGHTS <acl: unable to get access to CN=ypServ30,CN=RpcServices,CN=System,DC=mydomain,DC=mytld> <>" on DN CN=yp...