Monday, October 17, 2022

Notes About Powershell: Very Basic Powershell ISE Usage

Start by opening the Powershell ISE. It should be available in the "Type here to search" window of Windows 10, or similar. Note that the ISE (Integrated Scripting Environment) is essentially a simple Integrated Development Environment (IDE). Initially, it'll likely open only to a blue screen where you are in the Powershell "shell", where you can type commands, etc. For example, type:

dir

to get a listing of the current directory. This is a backwards-compatible (to the days of MS-DOS, even) command. The Powershell equivalent of doing the same thing is:

Get-Childitem

Yes, that does seem like over-kill, but Microsoft is going for consistency within the Powershell environment, with every command having an approved verb, Get in this case, followed by the "gist" of what the command is about, with the Childitem referring to the directory items.

You can put these Powershell-type commands in a script, to run like a program. To do this, go to File/New to open a new script window.

In here, you can put your dir command. Or better, use the Powershell equivalent: Get-Childitem. You might see the ISE trying to help you find the correct command/item with it's type-ahead prompts. (And you might not; it seems to be pretty hit-or-miss.)

Now, run your script by clicking on the green arrow in the menubar area. The results should show in the blue shell area below the text editing area.

Now if you save the script to a file, it'll automatically save with a ".ps1" extension, and you can open it later for editing. But once you save it, Powershell considers it a "real" script, and will refuse to run it because running scripts is against the default Powershell policy. Give it a try to see what I mean (assuming it hasn't already been fixed on your machine).

To fix that, fire up a Powershell session as Administrator, and run:

PS > Set-ExecutionPolicy

and select the "All" option. You can then exit out of the Admin session of Powershell, and restart your normal-user session of the Powershell ISE, and you should now be able to run your script.

Notes About Powershell: Accelerators

Accelerators

It is my understanding that many items in square brackets are "accelerators", which are what I would know as "aliases". You can get a list of Powershell objects that are accelerators like this:

PS >  [System.Management.Automation.PSObject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::get

Key                          Value                                                              
---                          -----                                                              
Alias                        System.Management.Automation.AliasAttribute                        
AllowEmptyCollection         System.Management.Automation.AllowEmptyCollectionAttribute         
AllowEmptyString             System.Management.Automation.AllowEmptyStringAttribute             
AllowNull                    System.Management.Automation.AllowNullAttribute                    
ArgumentCompleter            System.Management.Automation.ArgumentCompleterAttribute            
array                        System.Array                                                       
bool                         System.Boolean
  ...
pslistmodifier               System.Management.Automation.PSListModifier                        
psobject                     System.Management.Automation.PSObject                              
pscustomobject               System.Management.Automation.PSObject                              
psprimitivedictionary        System.Management.Automation.PSPrimitiveDictionary                 
  ...
CimSession                   Microsoft.Management.Infrastructure.CimSession                     
adsi                         System.DirectoryServices.DirectoryEntry                            
adsisearcher                 System.DirectoryServices.DirectorySearcher                         
wmiclass                     System.Management.ManagementClass                                  
wmi                          System.Management.ManagementObject                                 
wmisearcher                  System.Management.ManagementObjectSearcher                         
mailaddress                  System.Net.Mail.MailAddress                                        
scriptblock                  System.Management.Automation.ScriptBlock                           
psvariable                   System.Management.Automation.PSVariable                            
  ...

Notice the psobject accelerator. It's an accelerator ("alias") to System.Management.Automation.PSObject. This means that the above command can be shortened to:

PS >   [psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::get

Read more about accelerators here.

Saturday, October 15, 2022

Notes About Powershell, adsi, Active Directory Module, alternative authentication, Basics of Accessing Active Directory

Two Methods for Accessing AD Info from Powershell

There are two basic methods for accessing Active Directory information from within Powershell scripts: using Active Directory Service Interfaces (ADSI), and the Powershell ActiveDirectory module.

The second method, using the ActiveDirectory module, is native to Powershell, but is not "built-in" to most Powershell installations. Therefore, if you're planning for your Powershell to run on multiple computers, you have to take actions to make sure tht module is installed. This adds complexity to your script, and possible time to the run-time of the script.

The first method is "built in" to Powershell (sort of), but not native to Powershell. It is basically an import from the .NET system that is already installed on most Windows systems. It is this immediate and reliable availability that makes me prefer the ADSI method over the ActiveDirectory module method. Otherwise I'd stick with the pure Powershell method.

ADSI is the method I'm using below. There are two basic ADSI tools used with this method: [adsi] is an accelerator (or "alias") to System.DirectoryServices.DirectoryEntry, which points to actual objects within AD, and [adsisearcher] is an accelerator to System.DirectoryServices.DirectorySearcher, which is used for searching through AD.

Using the ADSI Method for accessing information in Active Directory

On a Machine Already Bound to an AD Domain

To access Active Directory (AD) data, we must bind to the directory. If your computer is attached to a network on which resides an AD controller, and your computer is already bound to that controller's domain, and you're logged into that domain, you can simply run:

[adsi]''

at a Powershell prompt, or from a Powershell script. This command will return the distinguishedName of the domain to which the computer is bound. Your results should be something like this:

distinguishedName : {DC=acu,DC=local}
  Path              : 

adsi is an accelerator ("alias" - see here for more info) for System.DirectoryServices.DirectoryEntry. The equivalent command is:

[System.DirectoryServices.DirectoryEntry]''

I mention using adsi because you might see it elsewhere. But for clarity, I'll use the more verbose verbiage, System.DirectoryServices.DirectoryEntry.

On a Machine Not Bound to an AD Domain

If your computer is not bound to an AD controller, you'll get results like this:

PS C:\Users\westk> [adsi]""
format-default : The following exception occurred while retrieving member "distinguishedName": "The specified domain either does not exist or could not be 
contacted.
"
    + CategoryInfo          : NotSpecified: (:) [format-default], ExtendedTypeSystemException
    + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Commands.FormatDefaultCommand

(Notice the quotes can be single or double; sometimes one will work better than the other depending on the situation.)

The computer I'm working with is not currently bound to the domain, but it is on the same network as the domain. In order to get AD info, I have to bind the computer in some way to the domain. This will require credentials for logging into the domain. If the computer were already on the domain, and I logged in as a domain user, this method would use my Windows login credentials by default. But we can specify different credentials, or just provide credentials if the computer is not already on the domain.

The System.DirectoryServices.DirectoryEntry method is picky about how credentials are presented. You have to give it the type of connection being made ("LDAP", as opposed to "WinNT", or one other method which I can't recall at the moment), and a username and a password that has domain permissions to read from the domain. For reading from this part of the domain, almost any domain user will suffice.

When giving this data to System.DirectoryServices.DirectoryEntry, the object it returns is "not compatible" with just spitting out the results to the console like it is when not giving this information; you'll need to declare the results as a new object. We'll call the new object "$root", since we're starting at the root of the Active Directory domain tree. If we wanted, we could call it "domain", or "DomainDN", or "bub". Suppose the username you're using to bind with is "johndoe", and his password is "SuperSecret". The command could thus look like this:

$root = New-Object System.DirectoryServices.DirectoryEntry("LDAP://acu.local/DC=acu,DC=local","acu.local\johndoe","SuperSecret")

Notice that the username field includes the domain name component.

When we look at the results:

PS > $root

this should produce output like this:

distinguishedName : {DC=acu,DC=local}
Path              : LDAP://acu.local/DC=acu,DC=local

We could also write the one-liner variable-assignment as several lines (ending some lines with a back-tic to signify that the line is continued), perhaps making the declaration more readable:

$root = New-Object `
	-TypeName System.DirectoryServices.DirectoryEntry `
	-ArgumentList "LDAP://acu.local/DC=acu,DC=local",
	"acu.local\johndoe",
	"SuperSecret"

Being a Little More Secure With the Password

Although you can feed the credentials directly to this command as strings, that's not a very secure way to do it in a script. So let's use variables instead, including a variable for the path within the AD tree:

$UserName = "johndoe"
$Password = "SuperSecret"
$AD_Path = "LDAP://acu.local/DC=acu,DC=local"
$root = New-Object `
	-TypeName System.DirectoryServices.DirectoryEntry `
	-ArgumentList $AD_Path,
	$UserName,
	$Password

Now we'd need to do something about those credential assignments being out in the open like that.

Secure-Prompting the User

If your script is going to be interactively run by a user sitting in front of the computer, you can (securely) prompt the user for the creds, like so:

$creds = Get-Credential
$root = New-Object `
	-TypeName System.DirectoryServices.DirectoryEntry `
	-ArgumentList $AD_Path,
	$($creds.UserName),
	$($creds.GetNetworkCredential().Password)

(You can also prompt with a pre-loaded username field with $creds = Get-Credential -Credential "acu.local\johndoe" . Note also that this process doesn't do anything; it just puts these two values in the $creds variable, making the previous variables, $UserName and $Passord, superflous; get rid of them from your script.)

Note that the $creds.Password must be manipulated a bit to get it in an acceptable form to be used by this command. Looking at the values of the various objects...

PS C:\Users\westk> $creds

UserName                            Password
--------                            --------
acu.local\johndoe System.Security.SecureString


PS C:\Users\westk> $creds.UserName
acu.local\johndoe

PS C:\Users\westk> $creds.Password
System.Security.SecureString

PS C:\Users\westk> $creds.GetNetworkCredential().Password
SuperSecret

you can start to understand the manipulations involved.

Reading the Creds From a File

If you don't have a user sitting in front of the computer when the script runs, you can store the username and an encrypted form of the password in a file, beforehand, and then read it from that file when it's needed. Be aware that this is still not secure, but it's more so.

Also, the most onerous caveat about this method, at least for general purpose scripts, is that the password encryption can only be decrypted by the same user account on the same computer as was used to do the encryption. You can't write/develop the script that uses this method on one computer, and then run it on another computer, or as a different user.

Saving the Credentials to an External File, Beforehand

Not in your script, but just at a Powershell prompt, enter the following:

Set-Content -Path ".\extras.zip" -Value "acu.local\johndoe"

This step creates a file named "extras.zip", over-writing any existing files of that name, in the current directory. The file contains the username. You can verify the contents of this newly-created file with:

type ".\extras.zip"

As you can see, it's not really a .zip file; it's just a plain text file. But naming it as a .zip is a minor mindgame, hoping to discourage the casual "hackers" from bothering to try and open / look into the file. It's a weak form of "security via obscurity"; probably completely useless, but I know when I'm casually looking at files with which I'm unfamiliar, I tend to look at .txt files and to leave .zip files along. But you can name your file any way you want.

Add-Content -Path ".\extras.zip" -Value $("SuperSecret") | ConvertFrom-SecureString -AsPlainText -Force)

This step adds the username to the now-already-existing "extras.zip" file. The value that gets added to the file is the password, which before getting added to the file, is piped to a converter that takes the plain text of "SuperSecret" and converts it to a SecureString.

You should now have a file named "extras.zip" with something like the following (which you can see with "type .\extras.zip":

acu.local\johndoe
01000000d08c9ddf0115d1118c7a00c04fc297eb010000001150a84662a6cd45af512286977fabcc00000000020000000000106600000001000020000000943962d675717d4a12cfe44a8a22b6a5f0ca77762c7bb61e6929515af684db5d000000000e80000000020000200000006370779b6f82983d4f417eccad5be5a80b0ae8a71d2820e736862d2b25453ce220000000c96767ea12fd28ab840fcefb49b4f86d84e97f4676e806a8d7511a86532d3c3f400000008a26d44b1d1df760436be9be186cb87a6cca6220364752e435af61188330043ac201f634ff88fd751b17aff9394c00e6ada09a2f1dd93c27702f9802e813f90d

Normally the ConvertTo-SecureString expects its input to be a standard encrypted string of plain text, like the line with numbers above. But we're starting with the plain text of "SuperSecret". If you feed it this plain unencrypted text, it complains. You can see this for yourself with this command:

"SuperSecret" | ConvertTo-SecureString

That's why we use the "-AsPlainText" argument, to override that behavior. You can see this for yourself like so:

'SuperSecret" | ConvertTo-SecureString -AsPlainText

But then you get another complaint. For security reasons, the command doesn't like to be given secret info out in the open, but you can force it to accept the input anyway, with:

'SuperSecret" | ConvertTo-SecureString -AsPlainText -Force

and now you see that the result is a SecureString.

However, we can not write this SecureString out to a file, and then recover it later. But what we can do is reverse the process, part-way. We won't reverse it back to a plain-text "SuperSecret", but rather to an encrypted-text form of "SuperSecret", by piping the above command to the counterpart:

'SuperSecret" | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString

The "native language" of these two tools is SecureStrings on one side and encrypted text on the other, so we don't have to specify anything special; it just takes the SecureString in the previous command and converts from that into encrypted text.

Now that we have the credentials stored in an external file, we have to tell our script to read them.

Reading the Credentials from an External File

In your script, replace the "$creds = Get-Credential" line like so:

# $creds = Get-Credential
$contents = Get-Content -Path ".\extras.zip"       # Read the file's contents.
# Reconvert the encrypted password back to a SecureString, and put both username and password into a new PSCredential object named $creds.
$creds = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $contents[0], $($contents[1] | ConvertTo-SecureString)

A Whole Script

Here's a whole script, so you can see the big picture.

<#  Powershell Script To Access An Active Directory Tree
  Written By:  [your name]
  Date: [today's date]
  [any ther comments you want to add]
#>
  
$creds = Get-Credential
$AD_Path = "LDAP://acu.local/DC=acu,DC=local"
$root = New-Object `
	-TypeName System.DirectoryServices.DirectoryEntry `
	-ArgumentList $AD_Path,
	$($creds.UserName),
	$($creds.GetNetworkCredential().Password)
Write-Output("The Distinguished (`"unique`") Name for the AD domain is: $($root.distinguishedName)")

Save that as a Powershell script file, and run it, and you should see output similar to:

The Distinguished ("unique") Name for the AD domain is: DC=acu,DC=local

A Second Whole Script, Slightly Different, for Perspective

#  Powershell Script To Access An Active Directory Tree
$Username_And_Password = [PSCustomObject]@{
	UserName = "maryjane"
	Password = "SuperTramp"
}
$TreeRoot = "LDAP://acu.local/DC=acu,DC=local"
$DirEntry = New-Object `
	-TypeName System.DirectoryServices.DirectoryEntry `
	-ArgumentList $($TreeRoot),
	$($Username_And_Password.UserName),
	$($Username_And_Password.Password)
Write-Output("The root is: $($TreeRoot).")
Write-Output("The password for $($Username_And_Password.UserName) is $($Username_And_Password.Password).")

One More Example

$AD_Node = adsi New-Object ("LDAP://DC=my_company,DC=com","my_company\accountant","time=$")
Write-Output("The domain info = $($AD_Node | Get-Member).")

which will produce output like this:

The domain info = static string ConvertDNWithBinaryToString(psobject deInstance, psobject dnWithBinaryInstance) static
 long ConvertLargeIntegerToInt64(psobject deInstance, psobject largeIntegerInstance) System.DirectoryServices.Property
ValueCollection auditingPolicy {get;set;} System.DirectoryServices.PropertyValueCollection creationTime {get;set;} Sys
tem.DirectoryServices.PropertyValueCollection dc {get;set;} System.DirectoryServices.PropertyValueCollection distingui
shedName {get;set;} System.DirectoryServices.PropertyValueCollection dSASignature {get;set;} System.DirectoryServices.
PropertyValueCollection dSCorePropagationData {get;set;} System.DirectoryServices.PropertyValueCollection forceLogoff 
{get;set;} System.DirectoryServices.PropertyValueCollection fSMORoleOwner {get;set;} System.DirectoryServices.Property
ValueCollection gPLink {get;set;} System.DirectoryServices.PropertyValueCollection instanceType {get;set;} System.Dire
ctoryServices.PropertyValueCollection isCriticalSystemObject {get;set;} System.DirectoryServices.PropertyValueCollecti
on lockoutDuration {get;set;} System.DirectoryServices.PropertyValueCollection lockOutObservationWindow {get;set;} Sys
tem.DirectoryServices.PropertyValueCollection lockoutThreshold {get;set;} System.DirectoryServices.PropertyValueCollec
tion masteredBy {get;set;} System.DirectoryServices.PropertyValueCollection maxPwdAge {get;set;} System.DirectoryServi
ces.PropertyValueCollection minPwdAge {get;set;} System.DirectoryServices.PropertyValueCollection minPwdLength {get;se
t;} System.DirectoryServices.PropertyValueCollection modifiedCount {get;set;} System.DirectoryServices.PropertyValueCo
llection modifiedCountAtLastProm {get;set;} System.DirectoryServices.PropertyValueCollection ms-DS-MachineAccountQuota
 {get;set;} System.DirectoryServices.PropertyValueCollection msDS-AllUsersTrustQuota {get;set;} System.DirectoryServic
es.PropertyValueCollection msDS-Behavior-Version {get;set;} System.DirectoryServices.PropertyValueCollection msDS-Expi
rePasswordsOnSmartCardOnlyAccounts {get;set;} System.DirectoryServices.PropertyValueCollection msDS-IsDomainFor {get;s
et;} System.DirectoryServices.PropertyValueCollection msDs-masteredBy {get;set;} System.DirectoryServices.PropertyValu
eCollection msDS-NcType {get;set;} System.DirectoryServices.PropertyValueCollection msDS-PerUserTrustQuota {get;set;} 
System.DirectoryServices.PropertyValueCollection msDS-PerUserTrustTombstonesQuota {get;set;} System.DirectoryServices.
PropertyValueCollection name {get;set;} System.DirectoryServices.PropertyValueCollection nextRid {get;set;} System.Dir
ectoryServices.PropertyValueCollection nTMixedDomain {get;set;} System.DirectoryServices.PropertyValueCollection nTSec
urityDescriptor {get;set;} System.DirectoryServices.PropertyValueCollection objectCategory {get;set;} System.Directory
Services.PropertyValueCollection objectClass {get;set;} System.DirectoryServices.PropertyValueCollection objectGUID {g
et;set;} System.DirectoryServices.PropertyValueCollection objectSid {get;set;} System.DirectoryServices.PropertyValueC
ollection otherWellKnownObjects {get;set;} System.DirectoryServices.PropertyValueCollection pwdHistoryLength {get;set;
} System.DirectoryServices.PropertyValueCollection pwdProperties {get;set;} System.DirectoryServices.PropertyValueColl
ection replUpToDateVector {get;set;} System.DirectoryServices.PropertyValueCollection repsFrom {get;set;} System.Direc
toryServices.PropertyValueCollection repsTo {get;set;} System.DirectoryServices.PropertyValueCollection rIDManagerRefe
rence {get;set;} System.DirectoryServices.PropertyValueCollection serverState {get;set;} System.DirectoryServices.Prop
ertyValueCollection subRefs {get;set;} System.DirectoryServices.PropertyValueCollection systemFlags {get;set;} System.
DirectoryServices.PropertyValueCollection uASCompat {get;set;} System.DirectoryServices.PropertyValueCollection uSNCha
nged {get;set;} System.DirectoryServices.PropertyValueCollection uSNCreated {get;set;} System.DirectoryServices.Proper
tyValueCollection wellKnownObjects {get;set;} System.DirectoryServices.PropertyValueCollection whenChanged {get;set;} 
System.DirectoryServices.PropertyValueCollection whenCreated {get;set;}.

Get The Next Level of Objects in the Domain Tree

After the last example, we now have the top lovel of our domain ("acu" in my case) in the variable $TreeRoot (or "$AD_Path", or "$root", or "AD_Node", or whatever variable name you chose to use; I'll use $Monkey in the following text, because we'll be watching where the monkey has climbed to in the tree).

Also, I have replaced the multi-line definition of the $Monkey object with the one-liner version.

Here's the script I currently have:

<# Scan_AD_Tree

    .DESCRIPTION
    This script accesses an Active Directory Tree

    .AUTHOR
    Kent West
    October 2022
#>

# These creds of a domain user will be used to bind to the domain.
# We can either prompt the user for those credentials...
# $creds = Get-Credential

# ... or we can get the creds from an external text file, assuming the file has been previously created, with:
# Set-Content -Path ".\extras.zip" -Value "acu.local\johndoe"
# Add-Content -Path ".\extras.zip" -Value $("SuperSecret") | ConvertFrom-SecureString -AsPlainText -Force)
$contents = Get-Content -Path ".\extras.zip"   # This reads the file, auto-making the "$contents" an array variable.
# Reconvert the encrypted-text password back to a SecureString, and put both username and password into a new PSCredential object named $creds.
$creds = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $contents[0], $($contents[1] | ConvertTo-SecureString)

# This is the LDAP "path" to the root of our AD domain "tree" named "acu.local".
$Tree_Path = "LDAP://acu.local/DC=acu,DC=local"

# We'll bind our tree-climber ("$Monkey") to the tree's path, currently at the root, using the domain user's creds.
$Monkey = New-Object System.DirectoryServices.DirectoryEntry($Tree_Path,$creds.UserName,$creds.GetNetworkCredential().Password)

Write-Output("The Common Name (CN) of the domain is $($Monkey.Name)."

Explanations/Comments in the Above May Not Be Entirely Accurate

This has been a learning process for me; I'm not confident I've explained things above entirely correctly, and I'm tired of chasing this rabbit, so I'm going to stop here, with a link that I started to include, along with a piece of code that references itself for no reason I can think of. In the hidden comments of the source to this page is a lot more information that doesn't really belong here, but is related.

Source Info
$DomainDN = New-Object -Type System.DirectoryServices.DirectorySearcher
$DomainDN.SearchRoot.Path

Sunday, October 02, 2022

Acceptable Worship

Acceptable worship used to be a matter of bowing down before the correct altar in the correct temple in the correct mountain.

Now, it's no longer a matter of bowing in this church building on this hill or that church building on that hill, but of truthful bowing in your spirit.

--Jesus, paraphrased

The Right Tool for the Job

I prefer acappella in our assemblies, for practical reasons.

Instruments (and "praise teams") tend to kill congregational singing. It tends to move congregants from the role of participant to the role of spectator.

But I'm very much against abusing scripture, and against making laws which God has not made.

Since the primary goal of assembling is to provoke one another to love and good works, and to encourage one another, and to build up one another, whatever accomplishes that is fair game within the assembly (1 Cor 14:26; Heb 10:24-25). God has made us all different, with different giftings. Some of us are brains, functioning on logic and reason; some of us are ears, functioning on music; some of us are eyes, functioning on art. Different members, and different "moods" within a member, will be best nourished by different foods than will be another member, or "mood". Like in the very earliest church, when sometimes the Jewish believers focused on study in the synagogue, and sometimes they praised God in the "raucous" environment of the Temple, modern Christians need the "everyone participates" congregational singing, and sometimes they need the instrumental-backed singing in the car that drive God-concepts deep into the brain so that those concepts bubble up in your background thinking. Stephen Spielberg does not make movies without instrumental music, because he knows that music has power to communicate very strongly, even without words. Believers should not throw away such a powerful tool that can be very valuable in the task of provoking, encouraging, and edifying, simply because we insist on teaching as doctrine a commandment we've invented which God has not spoken and which violates the principles he has spoken.

But it takes skill to wield instrumental music as that sort of powerful tool, and "praise bands" in our assemblies *generally* do not foster what is supposed to be fostered in our assemblies, at least for me, and at least in my experience. For me, in my experience, acappella, congregational, four-part harmony singing serves that task better.

But I'm not an ear.

Unless a tool has been forbidden (and instrumental music has not been forbidden), use whatever tool best does the job we've been assigned to do. If it provokes, encourages, and/or builds up, use the tool, whether that is a guitar, or a PowerPoint presentation, or a live art illustration, or a skit where one ties a belt around his hands to mime being arrested.

Just Christians

It has been claimed (I've not done the research myself) that US President Teddy Roosevelt was in favor of legal immigration, with the stipulation that the immigrant endeavor to become fully integrated into America, learning the language and the history of America, and becoming an American, not a This-American or a That-American, which spurs division rather than unity.

As I have understood it, this is the essential thrust of the Restoration Movement, to become a Christian, not a This-Christian or a That-Christian, not a Baptist Christian or a Paulite Christian or even a Church of Christ-er Christian.

I believe this is a good goal, and even though the implementation of this goal has been marred by our imperfections, the "Church of Christ" "denomination" at least pays lip-service to this goal.

Continue to reject the failures in the attempts by the Church of Christ-er Christians towards this goal, but I encourage you to join with them in the goal itself - just be a Christian, not a Flavored-Christian, which spurs division rather than unity.

Thursday, August 11, 2022

The Meaning of 'ekklesia'

ekklesia, usually translated as "church" in most English versions of the Bible, is a compound word meaning "out of" (ek) and "called" (kaleo). Etymologically it means "the called out".


Whereas it's unwise to accept the etymological meaning of a word as its actual meaning ("pineapple" has nothing to do with either pines or apples [except somewhat for it's appearance in the eyes of medieval botanists]), in this case it's pretty safe.


The earliest usage of the word appears to date back to early Greek City-States, and refers to political restructuring, when citizens might be "called out" of a city to form, as a group, a new government structure. A political coup, so to speak.


By New Testament times it was a little less political, a little less revolutionary, sometimes referring to simply a crowd, even a rowdy one, like when the town clerk dismisses the rioting mob in Acts 19:41, using the word ekklesia.


(The "churches of Christ" in Rom 16:16 could be rendered just as accurately as the "mobs of the Messiah".)


When Jesus announced that he would build his church, he was essentially saying that he was going to call out from the world a people of his own, to form a new government, and we see this sort of description both in earlier scripture:

WEB Isa 9:7 Of the increase of his government and of peace there shall be no end, on David’s throne, and on his kingdom, to establish it, and to uphold it with justice and with righteousness from that time on, even forever.
and later scripture:
WEB 1 Pet 2:9 But you are a chosen race, a royal priesthood, a holy nation, a people for God’s own possession, that you may proclaim the excellence of him who called you out of darkness into his marvelous light.
Originally published at:
http://kentwest.blogspot.com/2022/08/the-meaning-of-ekklesia.html

Christianity Was Exclusively Jewish in the Beginning

Some believe that when the earliest Christians were in the temple of the Jews, they were there only to preach, and no longer behaved as Jews did within the temple.
 
How did Theophilus understand the words of Luke in Acts 2:46-47?
 
You will recall that the book of Acts is essentially The Book of Luke to Theophilus, Vol 2. What did Theophilus learn from Vol 1?
Luke 24:52-53 (WEB) They worshiped him, and returned to Jerusalem with great joy, and were continually in the temple, praising and blessing God. Amen.
When Theophilus later read:
Acts 2:46-47 (WEB) Day by day, continuing steadfastly with one accord in the temple, and breaking bread at home, they took their food with gladness and singleness of heart, praising God, and having favor with all the people. The Lord added to the assembly day by day those who were being saved.
it is unlikely that he understood the disciples to not be praising God in the temple, but rather to be praising him elsewhere.
 
Rather, he probably understood them to be praising God in the temple and in their homes, both. There is no reason to understand Luke as saying, "They praised God in the temple, until Pentecost, and then they stopped praising God in the temple and praised him only in their homes, but I'm not going to clearly indicate that."
 
We know that after questioning by the temple authorities, Peter and John "returned to their company", and that a congregational prayer was then offered up to God (Acts 4:23ff), and that their company congregated in the Porch of Solomon (Acts 3:11; 5:11-12).
 
Paul was in the temple praying (Acts 22:17), not "disputing with anyone or stirring up a crowd" (24:12). The temple was a "house of prayer" (Matt 21:13), and that's exactly the purpose for which Paul used it; he did not use it at all as a preaching location, which tells us that the Apostles were not in the temple only to preach.
 
The text indicates that the Jewish believers continued being Jewish - they kept circumcising their children, and they kept their Jewish customs (Acts 21:17ff). Even Peter at first resisted the call to go to the "unclean" Gentiles, because that was "against the law" (Acts 10, esp v. 28), and it required a heavenly vision three times to overcome his resistance. The Jewish brothers with Peter were astonished that God's favor was no longer exclusively for the Jewish, but "also" for the Gentiles (Acts 10:45). The other church leaders in Jerusalem also initially condemned Peter for his visit to an unclean Gentile (Acts 11:3), but finally admitted that Gentiles were now welcome into the church:
Acts 11:18 (WEB) When they heard these things, they held their peace, and glorified God, saying, “Then God has also granted to the Gentiles repentance to life!”
It seems clear that in the beginning, the earliest Christians believed that Christianity was exclusively Jewish.
 
Fourteen years later, there was still a question of what was required of Gentiles to become Christians, and a significant portion of brethren believed that such required the Gentiles to become Jews, via circumcision and the keeping of the law of Moses:
Acts 15:1 (WEB) ​ Some men came down from Judea and taught the [Gentile] brothers, “Unless you are circumcised after the custom of Moses, you can’t be saved.” ... Acts 15:5 But some of the sect of the Pharisees who believed rose up, saying, “It is necessary to circumcise [the Gentile believers], and to command them to keep the law of Moses.”
And here's the kicker: the Apostles did not have a definitive, authoritative answer for the question about Gentile believers. It took "much discussion" (Acts 15:7) to come to a decision; not to a "thus saith the Lord", but rather to a "it seemed good to the holy spirit and to us" (Acts 24:28) "decision" (Acts 21:25). Here we see put into action the promise to Peter that whatever is bound on earth will be bound in heaven.
 
So what message does the Bible present? That in the very beginning, the church was exclusively Jewish, continuing to do things in the Jewish ways, abiding by the law of Moses, believing that circumcision and the keeping of the law of Moses was required to be a Christian. It took visions and miracles and much discussion and years to realize that Gentiles don't have to become Jewish to be saved.
 
When we get to Paul in Acts 21, we find this exact same situation: the Jewish believers were zealous for the law of Moses and their customs, but the Gentile believers were not bound by these things:
Acts 21:20 (WEB) They, when they heard it, glorified God. They said to him, “You see, brother, how many thousands there are among the Jews of those who have believed, and they are all zealous for the law. ... Acts 21:25 But concerning the Gentiles who believe, we have written our decision that they should observe no such thing, except that they should keep themselves from food offered to idols, from blood, from strangled things, and from sexual immorality.”
I believe it is incorrect to believe that the earliest Christians stopped behaving in the temple as Jews behaved within the temple. They were Jews within the temple; they were not something else. What was new about these Jews was not that they behaved differently than the other Jews in the temple, but that they had found their long-awaited Chosen One, their Messiah.
 
Originally published at:
http://kentwest.blogspot.com/2022/08/christianity-was-exclusively-jewish-in.html

Thursday, July 28, 2022

The Letter of the Law vs The Spirit of the Law

Did you know ...

In at least one case, God cared more about the person's heart than he did about the person "obeying the command to the letter":
WEB 2 Chron 30:18 For a multitude of the people ... had not cleansed themselves, yet they ate the Passover other than the way it is written. For Hezekiah had prayed for them, saying, “May the good Yahweh pardon everyone who sets his heart to seek God, Yahweh, the God of his fathers, even if they aren’t clean according to the purification of the sanctuary.” Yahweh listened to Hezekiah, and healed the people.

Two Passovers?!

Did you know ...

There were two annual Passover days? One was on the 14th of the first month of the new year, and the second was on the 14th of the second month, reserved for those who had special needs preventing them from celebrating the official day in the first month.
WEB Num 9:2 “Let the children of Israel keep the Passover in its appointed season. On the fourteenth day of this month, at evening, you shall keep it in its appointed season. You shall keep it according to all its statutes and according to all its ordinances.” ... They kept the Passover in the first month, on the fourteenth day of the month at evening, in the wilderness of Sinai. According to all that Yahweh commanded Moses, so the children of Israel did. ... Yahweh spoke to Moses, saying, “Say to the children of Israel, ‘If any man of you or of your generations is unclean by reason of a dead body, or is on a journey far away, he shall still keep the Passover to Yahweh. In the second month on the fourteenth day at evening they shall keep it; they shall eat it with unleavened bread and bitter herbs. They shall leave none of it until the morning, nor break a bone of it. According to all the statute of the Passover they shall keep it. But the man who is clean, and is not on a journey, and fails to keep the Passover, that soul shall be cut off from his people. Because he didn’t offer the offering of Yahweh in its appointed season, that man shall bear his sin.
It might be noted that the restoration of the Passover by Hezekiah was kept on the second Passover, and God approved:
WEB 2 Chron 30:2 For the king had taken counsel with his princes and all the assembly in Jerusalem to keep the Passover in the second month. For they could not keep it at that [1st month] time, because the priests had not sanctified themselves in sufficient number, and the people had not gathered themselves together to Jerusalem. The thing was right in the eyes of the king and of all the assembly. ... For Hezekiah had prayed for them, saying, “May the good Yahweh pardon everyone who sets his heart to seek God, Yahweh, the God of his fathers, even if they aren’t clean according to the purification of the sanctuary.” Yahweh listened to Hezekiah, and healed the people.
(It might also be noted that doing "what was right in their own eyes" does not necessarily refer to doing wrong.) Hezekiah's great-grandson, however, did it right:
WEB 2 Chron 35:1 Josiah kept a Passover to Yahweh in Jerusalem. They killed the Passover on the fourteenth day of the first month.

God Seems to Like Beer. Huh, who knew?

Did you know... Yahweh commanded that the Israelites offer "strong drink" ("strong wine" - KJV; "beer" - HCSB) to him twice a day, once in the morning and once in the evening?
WEB Numbers 28:1 Yahweh spoke to Moses, saying, ... ‘This is the offering made by fire which you shall offer to Yahweh: male lambs a year old without defect, two day by day, for a continual burnt offering. You shall offer the one lamb in the morning, and you shall offer the other lamb at evening ... You shall pour out a drink offering of strong drink to Yahweh in the holy place. ... As the meal offering of the morning, and as its drink offering, you shall offer it, an offering made by fire, for a pleasant aroma to Yahweh.

God Can Speak Through "Pagans"

Did you know ... God spoke through the mouth of a "pagan", to a good righteous King of Judah, who foolishly didn't listen.
WEB 2 Chron 35:22 Nevertheless Josiah would not turn his face from him, but disguised himself, that he might fight with him, and didn’t listen to the words of Neco from the mouth of God, and came to fight in the valley of Megiddo.

Sunday, August 22, 2021

Singing Praise to God, Among the Gentiles

Paul often quoted from the "Old Testament" as authoritative scripture. For example, here are four quotes from four different OT passages, in four consecutive verses written by Paul:

Rom 15:9-12 WEB 9 and that the Gentiles might glorify God for his mercy. As it is written, “Therefore I will give praise to you among the Gentiles and sing to your name.” 10 Again he says, “Rejoice, you Gentiles, with his people.” 11 Again, “Praise the Lord, all you Gentiles! Let all the peoples praise him.” 12 Again, Isaiah says, “There will be the root of Jesse, he who arises to rule over the Gentiles; in him the Gentiles will hope.”

Something that might interest this list is that the first quote comes from Psalm 108:3, in the context of the very phrase Paul uses elsewhere -- "sing and make music with the inner person" -- and these two Paulian quotes sandwich a detail about how this singing God's praise amongst the Gentiles will take place:

Psa 108:1-3 WEB 1 My heart is steadfast, God. I will sing and I will make music with my soul. 2 Wake up, harp and lyre! I will wake up the dawn. 3 I will give thanks to you, Yahweh, among the nations. I will sing praises to you among the peoples.

This is how Paul expected his readers to understand singing and making melody in the inner person, as they sang praise to God among the Gentiles. It's how his authoritative scripture described the process.

 

Originally published at:
https://kentwest.blogspot.com/2021/08/singing-praise-to-god-among-gentiles.html

Friday, July 16, 2021

"Original" less-than-ness

"sin" does not mean "guilty"; it means "less-than-ness".


Adam had a choice, but prior to that choice, he was not affected by a "less-than-ness" of his physical nature. Once he made that choice however, everyone was affected by an inherited "less-than-ness" of their physical nature (as was the entire cosmos - Rom 8:20), except for one man, who inherited a different set of male genetic material, which was not tainted by this "less-than-ness".

This other man was the Second Adam, who also had a choice, unaffected by a "less-than-ness" of his physical nature. This Second Adam made the right choice, and as a result, those who follow him are free from the condemnation of this law of "less-than-ness" and its resulting death, and in the future, will experience life given to their mortal bodies by the same spirit that resurrected the Second Adam (Rom 8:1-11).

Sunday, January 17, 2021

God Requires Us To Live Righteously

I would argue that God *does* require us to live sinlessly.

But we've each failed.

So God came to earth to live sinlessly for us, and then paid the penalty for not living sinlessly. His right-ness, and his penalty-payment, both become ours, as a gift from him. Our job now is to strive to emulate him in his sinlessness, knowing we're still going to fail. Our best right-ness is as filthy rags before him. But the more of his spirit we have within us, the better we'll get at living sinlessly.

Babies Are Not Born in Sin

 We often turn to 1 John 3:4 for our definition of "sin" - a transgression of law.

But the New Testament uses the term more broadly than that one narrow definition. More generally, the term "sin" simply means "falling short of the target".

Paul uses this term in Romans 5-8 in this broader sense: Adam "fell short" of the target of obedience, and brought death into the world. This death then caused the entire cosmos to "fall short" of the target of its created ideal, which brings death to everyone, even those who are innocent of the type of "falling short" committed by Adam. There's a "falling short" that brings guilt, like Adam's, and there's a "falling short" that is not like Adam's, which still brings death even when there is no law to be broken.

So in the sense of "falling short" of law-keeping, it is correct to say that babies are not born in/with "sin".

But in the sense of "falling short" of what God intended in his creation, babies are born in "sin", and this is why innocent babies sometimes die. Such babies are not guilty of breaking law, and thus do not have sin in the way John uses the term, but they do have sin in the sense of falling short of the created ideal, as Paul uses the term.

Saved by "Faith Alone"

There is no such "real" thing as "faith alone".

What we believe determines what we do.

It is the shift from non-faith to faith that alone determines the direction we go (like shifting a car's gears from Reverse to Drive). There are other things involved (having gas in the tank, turning the key, pressing on the accelerator, etc), so it's inaccurate from one semantic viewpoint to say "faith alone saves", as pointed out by the New Testament author James. But from another semantic viewpoint, the only thing that saves one from driving off the cliff and moves him forward into safety is shifting the gear from Reverse to Drive.

Faith is the fundamental difference-maker. In that sense, we are saved by "faith alone". But in a different sense, faith is never "alone"; what you believe determines how you act. And a mere mental acknowledgement without act-changing behavior is a "dead faith" that has no power to save. The demons believe that "God is one". But that's not an action-changing faith; it's only a partial "faith", that doesn't turn them around, that doesn't shift them from Reverse to Drive. Salvation requires a living faith, not a dead faith.

When one has the appropriate faith, that faith saves, and it manifests as appropriate action. It's not the faith alone that saves, but conversely, it's the faith alone that saves. It's just a matter of what is meant by the words. The "faith alone doesn't save" crowd has better wording, or at least a better "my wording is more specifically found in the Bible" argument. But don't wrangle over words; seek unity in the spirit, not in the letter, of what's being said, to strengthen the bond of peace.

Thursday, January 07, 2021

Forsake Not the Assembling of the Saints

I'm going to suggest that Heb 10:25 is not as "plain" as most people believe.
The underlying Greek word there for "assembling (or "gathering) together" is ἐπισυναγωγὴν (episynagogen); this word is used in only one other place in the NT:
WEB 2 Thess 2:1 Now, brothers, concerning the coming of our Lord Jesus Christ and our --> gathering together <-- (ἐπισυναγωγῆς) to him, we ask you 2 not to be quickly shaken in your mind, and not be troubled, either by spirit, or by word, or by letter as if from us, saying that the day of Christ has already come.
Now with that in mind, reread the Heb passage:
WEB Heb 10:24 Let’s consider how to provoke one another to love and good works, 25 not forsaking our own --> assembling together <-- (ἐπισυναγωγὴν), as the custom of some is, but exhorting one another, and so much the more as you see the Day approaching.
Is the writer warning against forsaking a periodic gathering of believers, or is s/he warning against giving up on the coming gathering of all saints when Jesus returns? The similarity in these two passages, especially using the same unique word in each, points to the latter. Yet I daresay few find this to be their concept of the "plain language of Heb 10:25".
Even if this is referring to a regular assembly of believers, the focus of the meeting seems to be horizontally, outward-focused one-another oriented ("provoke", "encourage") rather than vertically, upward-focused God oriented ("worship"). It seems to be an "encouragement service" rather than a "worship service".

 

Saturday, January 02, 2021

The First Christian Evangelist ("bearer of good tidings") Was a Woman

The very first person whom Jesus appointed to tell the good news of his resurrection was a woman.

And when the men failed to believe her, Jesus rebuked them.

WEB John 20:[17] Jesus said to her, “Don’t hold me, for I haven’t yet ascended to my Father; but go to my brothers, and tell them, ‘I am ascending to my Father and your Father, to my God and your God.’”

Mark 16:[10] She went and told those who had been with him, as they mourned and wept. [11] When they heard that he was alive, and had been seen by her, they disbelieved. ... [14] Afterward he was revealed to the eleven themselves as they sat at the table, and he rebuked them for their unbelief and hardness of heart, because they didn’t believe those who had seen him after he had risen.

Here's perhaps another way of reading the 1 Cor 14 passage forbidding women to speak: 

Since chapter 7, Paul has been addressing issues that the Corinthians had written to him about. It seems that in some places he quotes what they say, and then replies to that quote.

For example:

Corinthian's Letter to Paul:

"It's good for a man to not touch a woman." 

Paul's Response: 

No, because of sexual immoralities, let each man have his own wife.

or

Corinthians:

"All things are legal for me to do."

Paul: 

Maybe, but not all things are expedient/helpful. So, no, not all things are "legal" for you.

I suggest that Paul is doing the same thing with the silent-women passage:

Corinthians:

"Women must be silent in the church!"

 Paul:

What? Was it from you men that the word of God went out (that is, remember Mary)? Are you men the only ones to whom God has given his word?

Paul had just spent three chapters explaining that God gives gifts, including speaking his word, to whomever he wants to give them, to be used for building up the church. And if God gives the gift of speech to a woman in the midst of an assembly, who do these Corinthian men think they are to say they know better than God how and when his giftings should be used? If it's shameful for a woman to speak among men, then Jesus sent Mary on a "shameful" errand, and then rebuked those who didn't listen to this "shameful" woman. And what law says these things? It's certainly not in the law of Moses, where women occasionally spoke and even took the lead. Maybe it was a Corinthian law, but how does that have bearing on what God's people do?

It is a hard thing to consider that we've misunderstood a passage all our lives, and perhaps this view of the passage is not correct. But I urge you to consider it with an open mind, and not just reject it out-of-hand in favor of your life-long-held traditional belief.

Jesus seems not to have held the typical Rabbinic view of women. According to https://www.bible-history.com/court-of-women/women.html

In the Temple proper the females occupied, according to Jewish tradition, only a raised gallery along three sides of the court. They were allowed to observe the ceremonies but never to participate in them.

Rabbinic literature was filled with contempt for women. The rabbis taught that women were not to be saluted, or spoken to in the street, and they were not to be instructed in the law or receive an inheritance. A woman walked six paces behind her husband and if she uncovered her hair in a public place she was considered a harlot.
...
They could not be disciples of any great rabbi, they certainly could not travel with any rabbi.
...
In court a woman's testimony was considered suspect....

Makes me wonder if the law referenced in 1 Cor 14:34 is the Rabbinic Law, that same law that specified hand-washing before eating, and which Jesus railed against as setting aside the commands of God for the sake of tradition.

It's interesting that Jesus was a rabbi that had a woman student (Mary choosing "the good part, that will not be taken away from her" - Luke 10:42), and had women as followers and fellow-travelers (Luke 8:1-3), despite "the law" forbidding such.

It's interesting that Jesus rebuked the men who disbelieved the woman's testimony, despite the culture's attitude toward the testimony of women.