Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70983

Re: Joining centos 6.5 member Domain Controller to an existing Windows Domain

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <malaclypse2@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'subject:Windows': 0.02; 'package,': 0.03; 'git': 0.09; 'okay': 0.09; 'worked.': 0.09; 'python': 0.11; 'bug': 0.12; 'assume': 0.14; 'bit.': 0.16; 'bypassing': 0.16; 'clone': 0.16; 'command.': 0.16; 'command:': 0.16; 'for,': 0.16; 'ought': 0.16; 'subject: \n ': 0.16; 'subject:member': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'library': 0.18; 'module': 0.19; 'trying': 0.19; "skip:' 30": 0.19; 'command': 0.22; 'install': 0.23; 'directory.': 0.24; 'module,': 0.24; 'package.': 0.24; 'mon,': 0.24; 'file.': 0.24; 'looks': 0.24; 'script': 0.25; 'downloaded': 0.26; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'point': 0.28; 'testing': 0.29; 'correct': 0.29; 'leave': 0.29; 'am,': 0.29; 'words': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'software,': 0.31; 'that.': 0.31; 'bug?': 0.31; 'idea,': 0.31; 'initiated': 0.31; 'up:': 0.31; 'file': 0.32; 'run': 0.32; 'open': 0.33; 'linux': 0.33; 'packaging': 0.33; 'there,': 0.34; 'problem.': 0.35; 'tool': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'version': 0.36; 'really': 0.36; 'installing': 0.36; 'right?': 0.36; "didn't": 0.36; "i'll": 0.36; 'should': 0.36; 'configured': 0.38; 'somebody': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'issue': 0.38; 'list,': 0.38; 'skip:- 10': 0.38; 'bad': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'tell': 0.60; 'till': 0.61; 'new': 0.61; "you're": 0.61; "you'll": 0.62; 'name': 0.63; 'management': 0.65; 'temporary': 0.65; 'here': 0.66; 'close': 0.67; 'said:': 0.68; 'export': 0.74; './configure': 0.84; 'presumably': 0.84; 'samba': 0.84; 'skip:/ 30': 0.84; 'subject:Domain': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WilpPZi2lXUVjveMQgYbi3aCEdn0uPPw2WvKK1cJPy8=; b=in9xw5x9kaxk3Xf1qp/ZnTMqn8sPWZbIE2zPkh4V2nc2xzViHN931AkUTS9W8q41+n 2ThhIv4RL/L0mqZXCmHCGkEKPeWQf8m1pKZ54aLVNpNh8wg0qMWGhwGK1zZT/yKQDU80 eOIjcETLqftvwhku6v9iX/VNtStu2dPHuJYom+VhDlayMq376D5msLMUFuUtRnwnJ/N2 Jqy5aQ0HeuopSIJl5bYLnquCzoNOvxOrYYzO4qoK9JePtwLY0Wi3QjbF0RXtdxzGaRIf gU/XSisusIQdZpqRudSVH6ToyI6wXAE+5cC+ycIhf/3SqaL5YtT064wq3OjvZgdhhvJp PGHQ==
MIME-Version 1.0
X-Received by 10.66.189.201 with SMTP id gk9mr10242278pac.25.1399408063035; Tue, 06 May 2014 13:27:43 -0700 (PDT)
In-Reply-To <F05CB11B090241E583A02EAB343D47D3@BeInformed>
References <F05CB11B090241E583A02EAB343D47D3@BeInformed>
Date Tue, 6 May 2014 16:27:42 -0400
Subject Re: Joining centos 6.5 member Domain Controller to an existing Windows Domain
From Jerry Hill <malaclypse2@gmail.com>
To "python-list (General)" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.9709.1399408425.18130.python-list@python.org> (permalink)
Lines 59
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1399408425 news.xs4all.nl 2920 [2001:888:2000:d::a6]:46126
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:70983

Show key headers only | View raw


On Mon, May 5, 2014 at 11:18 AM, Joshua Knights
<christcadet99@yahoo.com.dmarc.invalid> wrote:
>
> Here is my Issue and I think it may be a python path bug?

It's not a bug in Python.  It looks to me like a configuration problem.

I'm going to assume you have a good reason for bypassing your OS's
package management system.  In general, this is a bad idea, but since
this isn't a linux administration list, I'll leave it at that.

> Then I downloaded Samba with the following command:
> git clone git://git.samba.org/samba.git samba-master
> Then I installed the additional openldap-devel Library
> then I did the ./configure --enable-debug --enable-selftest
> then initiated the make command

So you configured it, and built it, but did not install it, right?
You didn't do a make install or make altinstall?  Installing would
presumably have put the files in the right place for them to be picked
up by python.  Since you just built samba without installing it, it
looks like you have to point python to the right place.

> When I do a find / - name samba.netcmd.main
>
> It pulls up: NOTHING!!

Right, that's not surprising.  samba.netcmd.main is a python package,
not a module, so it won't be named samba.netcmd.main.py or whatever
you were thinking.

> If I pull up : find / -name netcmd
>
> I get:
>
> /root/samba-master/python/samba/netcmd
> /root/samba-master/bin/python/samba/netcmd
> /root/samba-master/bin/default/python/samba/netcmd
>
> In my research somebody said: to export the PYTHONPATH and to change it to the correct path of the netcmd command.

You'll want to add the directory up to the "/python" bit.  I'm not
sure which one of those three is really the right location for the
module you're looking for, but I would start by trying
'/root/samba-master/bin/python'.  From there, python should be able to
find the samba package.

> if I wanted to fix it permanently then to update my bash.rc file.
>
> In other words Tell my samba tool where to look, and this look is only temporary till I close my terminal. Placing the command in the bash.rc file will run this script every time I open my terminal. Well, I tried all 3 and none of them worked.

This is not a good way to leave your system.  It's okay if you're just
testing the new samba build, but you really ought to install the
software, not just run it out of the build directory.  Best of all
would be to install a version that's actually been packaged up for
your OS using the CentOS packaging system.

-- 
Jerry

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Joining centos 6.5 member Domain Controller to an existing Windows Domain Jerry Hill <malaclypse2@gmail.com> - 2014-05-06 16:27 -0400

csiph-web