Thank you Rowland. Using ldif I'm able to update OU address details.
On Sun 12 Jan, 2020, 5:30 PM , <samba-request at lists.samba.org> wrote:
> Send samba mailing list submissions to
> samba at lists.samba.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.samba.org/mailman/listinfo/samba
> or, via email, send a message with subject or body 'help' to
> samba-request at lists.samba.org
>
> You can reach the person managing the list at
> samba-owner at lists.samba.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of samba digest..."
> Today's Topics:
>
> 1. Re: GPO (Rowland penny)
> 2. Create OU with address details (Afshan Suheel)
> 3. Re: GPO (sandy.napoles at eccmg.cupet.cu)
> 4. Re: GPO (sandy.napoles at eccmg.cupet.cu)
> 5. Re: Create OU with address details (Rowland penny)
> 6. Re: GPO (sandy.napoles at eccmg.cupet.cu)
>
>
>
> ---------- Forwarded message ----------
> From: Rowland penny <rpenny at samba.org>
> To: samba at lists.samba.org
> Cc:
> Bcc:
> Date: Sat, 11 Jan 2020 14:16:35 +0000
> Subject: Re: [Samba] GPO
> On 10/01/2020 18:16, Sandy via samba wrote:
> > update some dependencies that appear to be missing and the same error
> continues.
> >
> >
> > ./samba-tool gpo create WSUS -Usandy
> > Password for [ECCMG\sandy]:
> > Using temporary directory /tmp/tmpgcft6ubs (use --tmpdir to change)
> > ERROR(runtime): uncaught exception - (3221225524, 'The object name
is
> not found.')
> > File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/__init__.py",
> line 186, in _run
> > return self.run(*args, **kwargs)
> > File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo.py",
line
> 1277, in run
> > copy_directory_local_to_remote(conn, gpodir, sharepath)
> > File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo.py",
line
> 374, in copy_directory_local_to_remote
> > conn.savefile(r_name, data)
> >
> >
> As I said, neither I or Louis can reproduce your problem, so it looks
> like the problem is at your end, especially has a lack of a required
> package has now been ruled out
>
> I can only think of two possibilities, is Apparmor running ?
>
> If it is, try turning it off and see if this fixes your problem.
>
> Is PATH set correctly ?
>
> If you run (in a terminal): echo "$PATH"
>
> Does it start with
'/usr/local/samba/bin:/usr/local/samba/sbin:.....' ?
>
> Failing that, please go here:
> https://github.com/thctlo/samba4/blob/master/samba-collect-debug-info.sh
>
> Download the script, run it on the failing DC and paste the output into
> a reply to this thread, do not attach it, this mailing list strips
> attachments.
>
> Rowland
>
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Afshan Suheel <afshansuheel9 at gmail.com>
> To: samba at lists.samba.org
> Cc:
> Bcc:
> Date: Sat, 11 Jan 2020 20:17:17 +0530
> Subject: [Samba] Create OU with address details
> Hi,
>
> using below code to create ou:
>
> try:
> full_ou_dn = samdb.normalize_dn_in_domain(ou_dn)
> except Exception as e:
> raise CommandError('Invalid ou_dn "%s": %s' %
(ou_dn, e))
>
> try:
> samdb.create_ou(full_ou_dn, description=description)
> except Exception as e:
> raise CommandError('Failed to create ou "%s"'
% full_ou_dn, e)
>
> Using this code I'm able to add only ou name and description.
>
> How to add/update ou address details like city, state and zip code etc.
>
> Regards,
> Suheel
>
>
>
>
> ---------- Forwarded message ----------
> From: sandy.napoles at eccmg.cupet.cu
> To: samba at lists.samba.org
> Cc:
> Bcc:
> Date: Sat, 11 Jan 2020 15:28:31 +0000
> Subject: Re: [Samba] GPO
> This is the result
>
> /usr/local/samba/bin# ./script.sh
> Please wait, collecting debug info.
>
> Password for Administrator at ECCMG.CUPET.CU:
> ./script.sh: line 209: samba: command not found
> grep: : No such file or directory
> ./script.sh: line 289: samba-tool: command not found
> grep: /etc/samba/smb.conf: No such file or directory
> ./script.sh: line 328: [: : integer expression expected
> grep: : No such file or directory
> The debug info about your system can be found in this file:
> /tmp/samba-debug-info.txt
> Please check this and if required, sanitise it.
> Then copy & paste it into an email to the samba list
> Do not attach it to the email, the Samba mailing list strips attachments.
>
>
> January 11, 2020 6:10 AM, "Rowland penny via samba" <samba at
lists.samba.org>
> wrote:
>
> > On 10/01/2020 18:16, Sandy via samba wrote:
> >
> >> update some dependencies that appear to be missing and the same
error
> continues.
> >>
> >> ./samba-tool gpo create WSUS -Usandy
> >> Password for [ECCMG\sandy]:
> >> Using temporary directory /tmp/tmpgcft6ubs (use --tmpdir to
change)
> >> ERROR(runtime): uncaught exception - (3221225524, 'The object
name is
> not found.')
> >> File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/__init__.py",
> line 186, in _run
> >> return self.run(*args, **kwargs)
> >> File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo.py",
line
> 1277, in run
> >> copy_directory_local_to_remote(conn, gpodir, sharepath)
> >> File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo.py",
line
> 374, in
> >> copy_directory_local_to_remote
> >> conn.savefile(r_name, data)
> >
> > As I said, neither I or Louis can reproduce your problem, so it looks
> like the problem is at your
> > end, especially has a lack of a required package has now been ruled
out
> >
> > I can only think of two possibilities, is Apparmor running ?
> >
> > If it is, try turning it off and see if this fixes your problem.
> >
> > Is PATH set correctly ?
> >
> > If you run (in a terminal): echo "$PATH"
> >
> > Does it start with
'/usr/local/samba/bin:/usr/local/samba/sbin:.....' ?
> >
> > Failing that, please go here:
> >
https://github.com/thctlo/samba4/blob/master/samba-collect-debug-info.sh
> >
> > Download the script, run it on the failing DC and paste the output
into
> a reply to this thread, do
> > not attach it, this mailing list strips attachments.
> >
> > Rowland
> >
> > -- To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/options/samba
>
>
>
>
>
> ---------- Forwarded message ----------
> From: sandy.napoles at eccmg.cupet.cu
> To: Rowland penny <rpenny at samba.org>, samba at lists.samba.org
> Cc:
> Bcc:
> Date: Sat, 11 Jan 2020 15:32:40 +0000
> Subject: Re: [Samba] GPO
> I can only think of two possibilities, is Apparmor running ?
> ----->apparmor is not instaled
>
>
>
> >
> > If it is, try turning it off and see if this fixes your problem.
> >
> > Is PATH set correctly ?
> >
> > If you run (in a terminal): echo "$PATH"
> >
> > Does it start with
'/usr/local/samba/bin:/usr/local/samba/sbin:.....' ?
> >
> > Failing that, please go here:
> >
https://github.com/thctlo/samba4/blob/master/samba-collect-debug-info.sh
> >
> > Download the script, run it on the failing DC and paste the output
into
> a reply to this thread, do
> > not attach it, this mailing list strips attachments.
> >
> > Rowland
> >
> > -- To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/options/samba
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Rowland penny <rpenny at samba.org>
> To: samba at lists.samba.org
> Cc:
> Bcc:
> Date: Sat, 11 Jan 2020 15:21:38 +0000
> Subject: Re: [Samba] Create OU with address details
> On 11/01/2020 14:47, Afshan Suheel via samba wrote:
> > Hi,
> >
> > using below code to create ou:
> >
> > try:
> > full_ou_dn = samdb.normalize_dn_in_domain(ou_dn)
> > except Exception as e:
> > raise CommandError('Invalid ou_dn "%s":
%s' % (ou_dn, e))
> >
> > try:
> > samdb.create_ou(full_ou_dn, description=description)
> > except Exception as e:
> > raise CommandError('Failed to create ou
"%s"' % full_ou_dn,
> e)
> >
> > Using this code I'm able to add only ou name and description.
> And that is all the code will allow :-(
> >
> > How to add/update ou address details like city, state and zip code
etc.
>
> You could write a script around the 'samba-tool ou create' command
to
> create the OU and then, using an ldif, add your required attributes.
>
> Rowland
>
>
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: sandy.napoles at eccmg.cupet.cu
> To: samba at lists.samba.org
> Cc:
> Bcc:
> Date: Sat, 11 Jan 2020 15:35:07 +0000
> Subject: Re: [Samba] GPO
> Collected config --- 2020-01-11-10:14 -----------
>
> Hostname: ccmg7
> DNS Domain: eccmg.cupet.cu
> FQDN: CCMG7.eccmg.cupet.cu
> ipaddress: 172.18.68.7
> -----------
> Kerberos SRV _kerberos._tcp.eccmg.cupet.cu record verified ok, sample
> output:
> Server: 172.18.68.7
> Address: 172.18.68.7#53
>
> _kerberos._tcp.eccmg.cupet.cu service = 0 100 88 ccmg7.eccmg.cupet.cu.
> Samba is running as an AD DC
> -----------
> Checking file: /etc/os-release
> PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
> NAME="Debian GNU/Linux"
> VERSION_ID="9"
> VERSION="9 (stretch)"
> VERSION_CODENAME=stretch
> ID=debian
> HOME_URL="https://www.debian.org/"
> SUPPORT_URL="https://www.debian.org/support"
> BUG_REPORT_URL="https://bugs.debian.org/"
> -----------
>
> This computer is running Debian 9.11 i686
> -----------
> running command : ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group
> default qlen 1
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> inet6 ::1/128 scope host
> 2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast
> state UP group default qlen 1000
> link/ether 00:50:56:b9:45:29 brd ff:ff:ff:ff:ff:ff
> inet 172.18.68.7/26 brd 172.18.68.63 scope global ens192
> inet6 fe80::250:56ff:feb9:4529/64 scope link
> -----------
> Checking file: /etc/hosts
> 127.0.0.1 localhost localhost.localdomain
> 172.18.68.7 CCMG7.eccmg.cupet.cu CCMG7
> Checking file: /etc/resolv.conf
> search eccmg.cupet.cu
> nameserver 172.18.68.7
> -----------
> Checking file: /etc/krb5.conf
> [libdefaults]
> default_realm = ECCMG.CUPET.CU
> dns_lookup_realm = false
> dns_lookup_kdc = true
> -----------
> Checking file: /etc/nsswitch.conf
> # /etc/nsswitch.conf
> #
> # Example configuration of GNU Name Service Switch functionality.
> # If you have the `glibc-doc-reference' and `info' packages
installed, try:
> # `info libc "Name Service Switch"' for information about
this file.
>
> passwd: compat
> group: compat
> shadow: compat
> gshadow: files
>
> hosts: files dns
> networks: files
>
> protocols: db files
> services: db files
> ethers: db files
> rpc: db files
>
> netgroup: nis
> -----------
> Warning, does not exist
> -----------
> BIND_DLZ not detected in smb.conf
> -----------
> Installed packages:
> ii acl 2.2.52-3+b1 i386
> Access control list utilities
> ii attr 1:2.4.47-2+b2 i386
> Utilities for manipulating filesystem extended attributes
> ii krb5-config 2.6 all
> Configuration files for Kerberos Version 5
> ii krb5-user 1.15-1+deb9u1 i386
> basic programs to authenticate using MIT Kerberos
> ii libacl1:i386 2.2.52-3+b1 i386
> Access control list shared library
> ii libacl1-dev 2.2.52-3+b1 i386
> Access control list static libraries and headers
> ii libattr1:i386 1:2.4.47-2+b2 i386
> Extended attribute shared library
> ii libattr1-dev:i386 1:2.4.47-2+b2 i386
> Extended attribute static libraries and headers
> ii libgssapi-krb5-2:i386 1.15-1+deb9u1 i386
> MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
> ii libkrb5-3:i386 1.15-1+deb9u1 i386
> MIT Kerberos runtime libraries
> ii libkrb5support0:i386 1.15-1+deb9u1 i386
> MIT Kerberos runtime libraries - Support library
> -----------
>
>
>
> January 11, 2020 6:17 AM, "Rowland penny via samba" <samba at
lists.samba.org>
> wrote:
>
> > On 10/01/2020 18:16, Sandy via samba wrote:
> >
> >> update some dependencies that appear to be missing and the same
error
> continues.
> >>
> >> ./samba-tool gpo create WSUS -Usandy
> >> Password for [ECCMG\sandy]:
> >> Using temporary directory /tmp/tmpgcft6ubs (use --tmpdir to
change)
> >> ERROR(runtime): uncaught exception - (3221225524, 'The object
name is
> not found.')
> >> File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/__init__.py",
> line 186, in _run
> >> return self.run(*args, **kwargs)
> >> File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo.py",
line
> 1277, in run
> >> copy_directory_local_to_remote(conn, gpodir, sharepath)
> >> File
>
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/gpo.py",
line
> 374, in
> >> copy_directory_local_to_remote
> >> conn.savefile(r_name, data)
> >
> > As I said, neither I or Louis can reproduce your problem, so it looks
> like the problem is at your
> > end, especially has a lack of a required package has now been ruled
out
> >
> > I can only think of two possibilities, is Apparmor running ?
> >
> > If it is, try turning it off and see if this fixes your problem.
> >
> > Is PATH set correctly ?
> >
> > If you run (in a terminal): echo "$PATH"
> >
> > Does it start with
'/usr/local/samba/bin:/usr/local/samba/sbin:.....' ?
> >
> > Failing that, please go here:
> >
https://github.com/thctlo/samba4/blob/master/samba-collect-debug-info.sh
> >
> > Download the script, run it on the failing DC and paste the output
into
> a reply to this thread, do
> > not attach it, this mailing list strips attachments.
> >
> > Rowland
> >
> > -- To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/options/samba
>
>
> _______________________________________________
> samba mailing list
> samba at lists.samba.org
> https://lists.samba.org/mailman/listinfo/samba
>