Hi,
For such question I first perform a ldbsearch on some object like the one I
want to create, put the result into some file and, after modifying content
of that file (which is LDIF format) I try to add it using ldbadd.
I like this process as it greatly helps to learn AD and LDAP management.
Cheers,
mathias
2016-02-22 9:21 GMT+01:00 Stefan Kania <stefan at kania-online.de>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> just create an ldif-file like this:
> - ---------------
> dn: OU=home,DC=example,DC=net
> changetype: add
> objectClass: top
> objectClass: organizationalunit
> description: my first ou
> - ---------------
> Then use ldbadd:
> - --------------
> ldbadd --url=/var/lib/samba/private/sam.ldb ou.ldif
> - --------------
>
>
> Am 22.02.2016 um 00:23 schrieb Johnata Tagliavini:
> > Hello.
> >
> > I apologize for my English, I am still learning. How do I create an
> > organizational unit (OU) via command in Samba4? I've researched
> > very samba-tool and found nothing on the subject. Thank you.
> >
> >
> > ? Atte, Johnata Tagliavini
> >
>
>
> - --
> Stefan Kania
> Landweg 13
> 25693 St. Michaelisdonn
>
>
> Signieren jeder E-Mail hilft Spam zu reduzieren. Signieren Sie ihre
> E-Mail. Weiter Informationen unter http://www.gnupg.org
>
> Mein Schlüssel liegt auf
>
> hkp://subkeys.pgp.net
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iEYEARECAAYFAlbKxSEACgkQ2JOGcNAHDTaMXQCfQGq7AQZI+qXNtFqaja2JhfsJ
> 4QgAoKkamG4els8jU4JhFa4fMEAOZMrI
> =FHkA
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>