Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

pdomain removal

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> pdomain removal Page: [1]
Login
Message << Older Topic   Newer Topic >>
pdomain removal - Jan. 30, '05, 9:44:28 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
SFU was originally installed when the host was in a AD domain. As such the pdomain var was set to the <NTDOMAIN> name. The server has been dropped from the domain, however the pdomain variable is still set. I have checked the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Services For Unix and the PrincipalDomain value does not exist. I have tried various values for PrincipalDomain, but it just remains <NTDOMAIN> and should be the COMPUTERNAME.

Its a little annoying because all SSH connections require COMPUTERNAME+username.

Currently I am searching the registry and the SFU fs.

Any ideas?
Post #: 1
RE: pdomain removal - Jan. 31, '05, 2:17:43 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Did you reboot after making the change to the registry key PrincipalDomain ?

(in reply to prj32)
Post #: 2
RE: pdomain removal - Jan. 31, '05, 2:24:02 AM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
No (not with my testing of the value), but the machine was rebooted when it was removed from the Domain.

(in reply to Rodney)
Post #: 3
RE: pdomain removal - Jan. 31, '05, 2:25:47 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
You need to change/set the registry key PrincipalDomain and then reboot.

(in reply to prj32)
Post #: 4
RE: pdomain removal - Jan. 31, '05, 5:57:14 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
Unfortunately I can't reboot this system straight away. FYI, I have a bunch of other servers running SFU, all of which are a member of domains. NONE of them have this value present.

Can you/others confirm the presence of this value?

(in reply to Rodney)
Post #: 5
RE: pdomain removal - Jan. 31, '05, 7:22:48 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I can confirm the presence of the value on my system.
It isn't there by default at installation time.

(in reply to prj32)
Post #: 6
RE: pdomain removal - Jan. 31, '05, 11:47:25 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
Rodney, thanks for your reply.

FYI, the other boxes which are a member of the domain, have been rebooted several times, but this value still doesn't exist. I am organising the reboot of the problem server (i.e. was a member of the domain, but the pdomain is still showing), hopefully it will sort it out.

BTW, apart from rebooting the host system, can the Interix environment re-read the configuration?

(in reply to Rodney)
Post #: 7
RE: pdomain removal - Feb. 1, '05, 1:19:06 AM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
The registry key PrincipalDomain is _never_ there by default.

What Interix does is look at the PrincipalDomain key first,
and if it is not present then it will look for the reg. key
HKLM/software/microsoft/windows nt/currentVersion/WinLogin/CachePrimaryDomain
and use the value found here.
If this value doesn't exist, then it will default to the system's computername.

And yes, in this instance, you should not have to reboot.
What you need to do instead is "kill -1 1" as the local Administrator.
Don't worry about any error message like "kill: 1: No such process".
This is normal and expected.

(in reply to prj32)
Post #: 8
RE: pdomain removal - Feb. 1, '05, 1:29:43 AM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
Mark,

Thanks for your reply. The HUP on PID 1 fixed it. You Rock!

FYI, this key didn't exist either. However, the other domain bound servers have this present (as expected). Something must screw up when the server is removed from the domain.

One minor thing, now all UIDs (ls -al or whoami) show up with COMPUTERNAME+UID. Unlke other stand-alone servers which just have UID.

< Message edited by prj32 -- Feb. 1, '05, 1:48:30 AM >

(in reply to markfunk)
Post #: 9
RE: pdomain removal - Feb. 1, '05, 9:49:05 AM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
My guess is that the old domain name is still cached in an internal
variable inside Interkx.
What does /bin/pdomain return now ? (COMPUTERNAME or NTDOMAIN ?)

The way the code is supposed to work is to strip of any pdomain
matching prefix from user/group names.

(in reply to prj32)
Post #: 10
RE: pdomain removal - Feb. 1, '05, 9:23:03 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
/bin/pdomain now returns nothing. What next (don't say reboot)?

Just to throw another nugget in the mix. Have another box with SFU installed; it was later inserted into the domain. (obviously was bounced to make this happen) Its pdomain returned the COMPUTERNAME, performing the kill -1 1 changed it to its NTDOMAIN. Something seems to not work during domain/workgroup membership changes.

< Message edited by prj32 -- Feb. 1, '05, 9:43:18 PM >

(in reply to markfunk)
Post #: 11
RE: pdomain removal - Feb. 1, '05, 10:01:07 PM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
1) If you really want to continue to debug,
then try "truss /bin/pdomain". Look at the getpdomain() call
and see if it returns successful.
And if so, what is the "returned" number.

2) What you describe seems correct.
The domain information is queried and saved by Interix at boot time.
If the domain characteristics change after reboot (ie joining the domain)
then Interix won't know about the change until another reboot
or a "kill -1 1".

(in reply to prj32)
Post #: 12
RE: pdomain removal - Feb. 1, '05, 10:07:41 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
1. getpdomain() getpdomain returned 2
2. I'll see what happens on the next reboot. Certainly something that needs to be investigated further and potentially added to the install notes.

< Message edited by prj32 -- Feb. 1, '05, 10:08:43 PM >

(in reply to markfunk)
Post #: 13
RE: pdomain removal - Feb. 1, '05, 10:47:41 PM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
Since it returned successfully, a value of 2 means that
it was an empty string. (just the terminating null char.)
So, it must have found one of the registry keys
and the string there was empty.

(in reply to prj32)
Post #: 14
RE: pdomain removal - Feb. 2, '05, 2:04:01 AM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
Mark you are on the money. As previously mentioned I attempted to insert the PrincipalDomain value (no actual value) in the registry and was pending a reboot.

I have now removed it and with a kill -1 1 it has now removed the COMPUTERNAME+UID from all UID enumerations. No reboot required!

Nice job and thanks again.

BTW, this is certainly worth noting this somewhere.

(in reply to markfunk)
Post #: 15
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> pdomain removal Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.063